Quote:
Originally Posted by Patricia
I'm sorry that it didn't work for you, Ned. I think it must have been a lit file directly converted from a .txt if it still had all those irritating manual line breaks.
|
Quote:
Originally Posted by HarryT
But if it starts out as a LIT file, the "underlying" format is HTML, and carriage returns are ignored in HTML - paragraphs are defined purely by "<p>" or "<div>" tags.
I would suggest using "ConvertLIT" to "explode" the LIT file to OEB, and then look at the resulting HTML source to see what's causing the line breaks.
|
From personal experience, a lot of .txt to .html conversions for inclusion in a .lit file have this problem. So we have Garbage In-GarbageOut and reconversions become problematic!
Basically, the original CR/LF line endings in the .txt file were mindlessly just converted to <br>, and thus any attempt to salvage this situation
using the exploded .html from a .lit should address this issue.
In a text editior, open the .html and search and replace all: <br>\n with a "space" or just nothing
[i.e. search for <br> followed by a newline character and replace with a space or nothing (whichever works better).
Note: sometimes the newline may not exist, so search without it, in those cases]