07-02-2013, 12:42 PM | #1 |
Junior Member
Posts: 6
Karma: 5788
Join Date: Jul 2013
Device: none
|
White space inserted between paragraphs
Okay, I'm new to this, but this can't be right.
I have an ePub file which generally appears to be clean. When I load it in Sigil, it inserts white space (specifically, lf\b\b\b\b) between paragraphs (<h>, <p>, etc.) It makes the HTML readable, but,of course, shows up in the file and on the device. I can't get it to stop. I created a set of saved search/replaces to clear them out and they just keep returning. I'm sure there just some silly flag I didn't set, but I can't find it. I'm using Sigil 0.7.2 in windows 7 64 bit. please ... Help! |
07-02-2013, 12:56 PM | #2 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Try using an unzip program to unzip the files making up the epub. Examine the files in any text editor.
Make sure you do NOT have HTML Tidy turned on in the preferences in Sigil. It is undesirable and can add things to the file. The Pretty Print setting is sufficient. |
Advert | |
|
07-02-2013, 01:02 PM | #3 |
Imperfect Perfectionist
Posts: 464
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
|
07-02-2013, 01:16 PM | #4 |
Junior Member
Posts: 6
Karma: 5788
Join Date: Jul 2013
Device: none
|
I've read all the previous threads regarding this, but I still don't get it.
My final testing is with the Kindle simulator (Kindle Previewer) for windows and the white space shows up on that. I know it's there to make the HTLM readable, but it ends up in the completed file. Give me a minute ... I'll try the playing with the Clean Source flags. |
07-02-2013, 01:24 PM | #5 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The whitespace in the html code (that makes it readable) has absolutely nothing to do with with whitespace being rendered between paragraphs when viewing/reading (unless in the unlikely event you ARE using "white-space:pre-wrap" somewhere).
Margin between paragraphs is default. If you don't want it, you need to use styling (external, internal or inline) to tell it you don't want that default margin. Create a stylesheet, link it to your html file(s) and add an entry that looks like: Code:
p { margin: 0; text-indent: 1.2em; } Last edited by DiapDealer; 07-02-2013 at 01:36 PM. |
Advert | |
|
07-02-2013, 01:39 PM | #6 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
07-02-2013, 01:41 PM | #7 |
Junior Member
Posts: 6
Karma: 5788
Join Date: Jul 2013
Device: none
|
Ahhhh, step 1 complete .... I created a file that works (almost). Yes, turning off all the "Clean Source" flags works! Now .. I'll investigate the previous comment regarding white-space: pre-wrap to see if I can keep the readability.
|
07-02-2013, 02:05 PM | #8 |
Junior Member
Posts: 6
Karma: 5788
Join Date: Jul 2013
Device: none
|
DiapDealer, you're wonderful! I didn't have pre-wrap somewhere, I had it everywhere!
I had a friend of mine convert my Word doc into ePub using Pages. Apparently, pages puts a "white-spacere-wrap" at the beginning of every chapter. I commented it out and I can not only read my HTML, but it shows up in my previewer correctly !!!!!!!! Thank you all! |
07-04-2013, 08:04 AM | #9 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
Personally, I upload the epub to the KDP, let it convert, then download the *.mobi file to run it through Kindle Previewer. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems removing white space between paragraphs | Alda | Sigil | 30 | 06-27-2012 12:21 PM |
How to remove white space between paragraphs for iPad? | kabloooie | Conversion | 4 | 05-28-2012 05:11 AM |
Create a space between some paragraphs | Elle518 | ePub | 17 | 04-12-2012 04:21 PM |
space between paragraphs | gatorman | Sigil | 3 | 01-07-2011 10:17 AM |
Ragged right / space between paragraphs | Oldpilot | Sigil | 5 | 11-11-2010 07:59 PM |