Thread: EPUB output
View Single Post
Old 07-22-2010, 10:56 PM   #737
jayman
Enthusiast
jayman began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Dec 2009
Device: iphone
Quote:
Originally Posted by nrapallo View Post
And if it IS surround by <pre> tags, then your best bet would be to edit the .html file(s) within the .epub (open the .epub up with a zip archiver and edit/extract the .html files) and do the following:

1) at the end of each line within the <pre> tags append a <br /> tag (or two <br /><br /> based on your preference for blank line separation), and

2) replace the surrounding <pre> ... </pre> tags with <p> ... </p> instead.

That should make sure the lines don't run into each other, but still allow each long line to wrap around so that you can see the ending...

BTW, in 2) above, you can play with indents using <p style="text-intent: 2em"> ... </p> or hanging indents using <p style="text-intent: 0em; margin-left: 2em"> ... </p>. Experimentation is your friend!
thanks! will try it.
jayman is offline   Reply With Quote