View Single Post
Old 10-28-2008, 11:33 AM   #15
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by Patricia View Post
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 View Post
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]

Last edited by nrapallo; 10-28-2008 at 11:36 AM.
nrapallo is offline   Reply With Quote