![]() |
#1 | ||
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2013
Device: iPad
|
![]()
I've started using Sigil because my mac was inserting invisible files into ePubs that were creating problems on some platforms (iBookstore, for example).
The problems went away simply by opening the ePubs in Sigil and then saving them again. Now, for some reason, Sigil is inserting extra lines between paragraphs. I've read some other threads, but they don't seem to solve this issue. Originally, the codes say: Quote:
Quote:
Please help! Last edited by Benasam; 03-05-2013 at 01:06 PM. |
||
![]() |
![]() |
![]() |
#2 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
What you seem to be referring to are the blank lines between the <p>...</p> tags. These have no effect on how your book is displayed. The space between tags does not matter except for how readable your code is.
In 0.7.1 you can use Preferences->Clean Source and uncheck the Open and Save boxes and Sigil will no longer Pretty Print your source code on Open or Save. Why iBookstore is having problems with your file is another question/forum. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2013
Device: iPad
|
Thanks, Meme. But I can't see why else there'd be extra spaces in the saved ePub.
I'm using Sigil 6.2 (my computer isn't running ios 10.7). Any idea what else could be causing this issue? |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It is no issue. It is not causing problems with your files, it just makes it more readable. It is correct code.
|
![]() |
![]() |
![]() |
#5 |
Imperfect Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 625
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
The culprit seems to be the style="white-space:pre-wrap". When that is set, the empty lines set by Sigil will be rendered as just that - empty lines. Remove it, and everything looks ok.
- I think ... Regards, Kim |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2013
Device: iPad2
|
Quote:
Where does this "white-space:pre-wrap" come from? Is there a way to avoid it? thanks, Last edited by Jellby; 07-03-2013 at 10:28 AM. Reason: remove spurious smileys |
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Probably caused by Apple Pages. Avoid it by using another program, solve it by removing it.
|
![]() |
![]() |
![]() |
#8 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I'll take the lines in Sigil any day. They're harmless, AFAIK, and I've never seen an issue with them. Hitch |
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2014
Device: Kindle
|
Here's my experience with this frustrating bug.
Removing the white-space:pre-wrap doesn't fix things. It appears to be random. In smaller epubs, it seems ok, but I opened a larger one (90 pages) and these extra lines appear. It's NOT css, it's NOT Pages. The template generating these files in Pages is exactly the same, the files both have images, tables etc. I use styles to manage line heights etc. I had the two clean checkboxes checked (on Save) which I think is what causes it. I use Apple Pages as it supports intra-document linking, whereas Word on Mac does not (Bookmarks are a nightmare). I basically can't pin this down to anything. The Sigil forums simply pour scorn on Pages, but I don't think it's pages. It seems to occur randomly. I've unchecked Tidy too. And will report back. Last edited by Jellby; 05-22-2014 at 03:29 AM. Reason: noparse |
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
With the exception of when the "whitespace" style attribute exists (which can be used externally, internally, or inline), blank spaces between block elements in the html code have no bearing on how that code is rendered. None. If the "whitespace" attribute doesn't exist anywhere in your css or html files, then any unwanted spacing between elements has to be the fault of some other styling (or lack thereof) present in the html or css.
If you simply prefer to have total control over the spacing/indentation of your html code for aesthetic purposes, then turn off all Clean Source settings in the preferences. If your xhtml is already well-formed and error free, it won't be altered (provided you're using one of the latest versions of Sigil). |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It is NOT a bug. It is to make your code more readable. It is intentional. Something that is intentional cannot be a bug...
Empty lines in Codeview (and Pretty Print in general) will help you to read and understand the code better. |
![]() |
![]() |
![]() |
#12 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
If you want to find out why you are getting the unwanted spacing have you tried opening the file with Sigil and then using "inspect element" from the context menu in book view to show just what is contributing to it ?
BobC |
![]() |
![]() |
![]() |
#13 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Plus, you'll need to give us the code, BOTH the HTML and the CSS, between CODE tags, thanks. (And a spoiler tag, if they are lengthy). We don't need to see all of your book; just the html for the section in which the problem is occurring and the relevant CSS.) Otherwise, we're nailing jello to the walls, here. You say this: Quote:
Hitch |
||
![]() |
![]() |
![]() |
#14 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2014
Device: Kindle
|
Quote:
Using styles, I have para spacing (white space). This is spacing in the WYSIWYG view. Not the code view. I removed the pre white space wrap, fixed. I previously tried that, and it didn't fix it. Cheers |
|
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you read my comment closely, I only talk about CODEVIEW, not BOOKVIEW.
Also the white-space:pre-wrap is something that is added by pages and can give serious issues with lines not breaking and continue off screen. |
![]() |
![]() |
![]() |
Tags |
breaks, code, line breaks, paragraph, sigil |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smashwords inserting blank vertical gifs in unwanted places? | Keloff | ePub | 4 | 12-11-2011 10:20 AM |
Sigil 0.4.1 : unwanted span added by Sigil | Bertrand | Sigil | 0 | 09-02-2011 05:28 AM |
Can I stop Sigil from inserting sgc formatting commands? | ramjet1953 | Sigil | 4 | 11-22-2010 11:59 AM |
inserting blank lines into rtf/txt/html | errata | Ectaco jetBook | 7 | 07-10-2010 09:16 PM |
Unwanted space between paragraphs | superanima | Calibre | 3 | 10-14-2009 02:28 PM |