Thread: LRF output
View Single Post
Old 01-14-2008, 06:50 PM   #604
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
I have been having some issues with converting an ePub I threw together over the weekend. Since it uses html2lrf in the back-end, I figured this would be the place to comment on an HTML conversion glitch I have seen.

My tricky content is a single HTML file with a small CSS stylesheet at the top. I attempted to tweak the CSS after cleaning up the HTML and converting it to XHTML. What I tried to do is set a 'line-spacing: 1.5;' attribute for all paragraph tags, so that it would more closely match the line spacing used in the original book this is from, and make it slightly easier to read.

The end result is very weird. The first paragraph has the correct spacing, the second has more spacing, the third has even more spacing, the fourth has even /more/ spacing... etc. After a few pages, I only get one line per page because the line spacing is now very, very large. Almost as if the final HTML in the LRF embeds all the paragraph tags inside each other on accident.

I haven't tried using a value of a fixed spacing, rather than this multiplier, yet though.
Kolenka is offline   Reply With Quote