View Single Post
Old 05-07-2012, 12:26 AM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,149
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by unboggling View Post
I apply the OriginalFormat to ePub conversion using Look&Feel "Remove spacing between paragraphs" to all newly added books (except image or complex PDFs) to standardize the line and indent spacing across my libraries.

The "Remove spacing between paragraphs" doesn't work when the source uses Line Feed rather than Paragraph markers. I find it easiest to fix these by converting to RTF, search/replace Line Feeds to Paragraphs in Open Office or Word, save as ODT or RTF, then add that back to calibre and convert to ePub using the "Remove spacing between paragraphs" box.

Here's a question related to avoiding all that work on the LF exceptions: Is there an easy way to replace the HTML tags for LF (whatever they are) with the HTML tags for Paragraph (whatever they are), using search/replace regular expressions during the first conversion?
You really need to look at the HTML code

There is no LF or CR-LF tag in HTML
There is a <p> tag, or a <div> tag. Either of those could contain a <br /> tag (forces to a new line).

Code:
<p>
Now
 Is 
 the 
 time
 for 
 all
 Good Men</p>
is the same as:
Code:
<p>Now is the time for all Good Men</p>
theducks is offline   Reply With Quote