Quote:
Originally Posted by nrapallo
After 'mobi2html' fixes all the filepos pointers, what if I wanted (need) those Windows characters in the STDOUT output? Could I simulate it using the variable $rawhtml without printf $text?
What is the [char] code that is used in the .pdb (text) for para breaks? It is '\n' in the rawhtml text output to STDOUT.
|
You have misunderstood how it works. The construction to a HTML tree will remove "\n". So the $text variable will contain what you want which is the fixed HTML code (filepos fixed) with "\n" in it. If you just print that string in Windows the "\n" will be converted to the Windows line break convention with two characters.
I assume it is "\n" or "\n\n" that is used for paragraph break. But that is something that must be defined in the original format.
But I do not understan how you can have filepos pointers in something that is not an HTML file.