09-07-2008, 09:42 AM | #1 |
Connoisseur
Posts: 81
Karma: 2136402
Join Date: Aug 2008
Device: Kobo Clara HD, Amazon PW 3 iPad Pro, iPhone 12 Pro
|
last line in each paragraph centred
I have converted some books I bought a while ago from ereader format to html, then using Calibre to lrf.
Strangely, when I view the books in Calibre, I see that the last line of each paragraph is centred. I have tried editing the html source, adding <align=center> to no avail. The html file looks fine in a web browser and each paragraph is correctly aligned. I haven't bothered putting any of these files onto my Sony Reader, I am assuming that the layout will look the same as Callibre displays it. Any ideas? Cheers. |
09-07-2008, 11:29 AM | #2 |
creator of calibre
Posts: 44,353
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Attach one of these html files here.
|
Advert | |
|
09-07-2008, 11:56 AM | #4 |
creator of calibre
Posts: 44,353
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the paragaphs have align='center' specified (all the lines are centered, you only notice it for the last line because its ususally shorter than the page width.
|
09-07-2008, 11:58 AM | #5 |
creator of calibre
Posts: 44,353
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It works in a browser because actually only the leading paragraphs have align=center however the text is not put into its own <p> element. In this situation html2lrf (in order to generate more efficient LRF files) inherits the center attribute from the previous paragraph.
|
Advert | |
|
09-07-2008, 03:02 PM | #6 |
Connoisseur
Posts: 81
Karma: 2136402
Join Date: Aug 2008
Device: Kobo Clara HD, Amazon PW 3 iPad Pro, iPhone 12 Pro
|
Thank you.
I'm not sure what to do to put it right, though. I added <align=left> after any centred text and it made no difference. Sorry to be so dumb :-( |
09-07-2008, 04:22 PM | #7 |
creator of calibre
Posts: 44,353
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just add a <p style="text-align:left"> at the start of each block of text
|
09-10-2008, 01:46 AM | #8 |
Junior Member
Posts: 6
Karma: 32
Join Date: Sep 2008
Device: Sony PRS505
|
Don't know if you've worked around this or not, but I've been having the
same problem. I found that if open the html file in OpenOffice Writer and resave the html, the alignment is corrected. |
09-10-2008, 02:42 AM | #9 | |
Connoisseur
Posts: 81
Karma: 2136402
Join Date: Aug 2008
Device: Kobo Clara HD, Amazon PW 3 iPad Pro, iPhone 12 Pro
|
Quote:
Thank's very much for the tip! |
|
09-10-2008, 02:23 PM | #10 |
Connoisseur
Posts: 81
Karma: 2136402
Join Date: Aug 2008
Device: Kobo Clara HD, Amazon PW 3 iPad Pro, iPhone 12 Pro
|
Just tried it on my Mac using NeoOffice and it works! Very easy!
Thanks again. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extra paragraph line when converting from LRF | jhempel24 | Calibre | 3 | 08-18-2010 07:00 AM |
LRF to EPUB: Each line is a paragraph tag | wudaben | Calibre | 5 | 07-14-2010 07:04 PM |
Prevent Calibre to paragraph each line | armkbdotcom | Calibre | 3 | 05-29-2010 03:15 PM |
Treat each line as a paragraph in LIT files | tulsa | Calibre | 9 | 03-21-2010 02:49 PM |
Paragraph indents from command line | JSWolf | Calibre | 4 | 11-06-2008 08:41 PM |