Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2013, 12:56 PM   #1
Benasam
Junior Member
Benasam began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: iPad
Exclamation Stop Sigil from inserting unwanted lines between paragraphs

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:
<p class="s1">Sample text</p><p class="s1">More sample text</p>
But Sigil changes it to:
Quote:
<p class="s1">Sample text</p>
<p class="s1">More sample text</p>
When I use find and replace in Code View, the removed line breaks just reappear when I save.

Please help!
Attached Files
File Type: epub original.epub (418.9 KB, 21 views)
File Type: epub sigil.epub (411.6 KB, 19 views)

Last edited by Benasam; 03-05-2013 at 01:06 PM.
Benasam is offline   Reply With Quote
Old 03-05-2013, 01:08 PM   #2
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,261
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.
__________________
See the Sigil User Guide and its tutorials for details about Sigil.
meme is offline   Reply With Quote
 
Enthusiast
Old 03-05-2013, 01:14 PM   #3
Benasam
Junior Member
Benasam began at the beginning.
 
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?
Benasam is offline   Reply With Quote
Old 03-05-2013, 02:13 PM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,108
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
It is no issue. It is not causing problems with your files, it just makes it more readable. It is correct code.
__________________
Creator and maintainer of the e-Book Tools Word add-in.
Creator and maintainer of the Clean HTML macro for MS Word.
Toxaris is offline   Reply With Quote
Old 03-05-2013, 03:45 PM   #5
elibrarian
Connoisseur
elibrarian can extract oil from cheeseelibrarian can extract oil from cheeseelibrarian can extract oil from cheeseelibrarian can extract oil from cheeseelibrarian can extract oil from cheeseelibrarian can extract oil from cheeseelibrarian can extract oil from cheeseelibrarian can extract oil from cheeseelibrarian can extract oil from cheese
 
elibrarian's Avatar
 
Posts: 52
Karma: 1110
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: Sony PRS-T1, iPad
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
__________________
eBooks in Danish since 2002
www.ebib1800.dk
elibrarian is offline   Reply With Quote
Reply

Tags
breaks, code, line breaks, paragraph, sigil

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:00 AM.


MobileRead.com is a privately owned, operated and funded community.