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, 32 views)
File Type: epub sigil.epub (411.6 KB, 35 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,275
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.
meme is offline   Reply With Quote
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,727
Karma: 2117243
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.
Toxaris is online now   Reply With Quote
Old 03-05-2013, 03:45 PM   #5
elibrarian
Connoisseur
elibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to beholdelibrarian is a splendid one to behold
 
elibrarian's Avatar
 
Posts: 87
Karma: 19700
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
elibrarian is offline   Reply With Quote
Old 07-03-2013, 09:50 AM   #6
brinded
Member
brinded began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2013
Device: iPad2
Quote:
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'm having the same problem. I've noticed other similar posts, particularly when ePub is derived from Apple Pages/Export.

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
brinded is offline   Reply With Quote
Old 07-03-2013, 01:05 PM   #7
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,727
Karma: 2117243
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Probably caused by Apple Pages. Avoid it by using another program, solve it by removing it.
Toxaris is online now   Reply With Quote
Old 07-03-2013, 03:23 PM   #8
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,001
Karma: 10381859
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by Benasam View Post
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:


But Sigil changes it to:


When I use find and replace in Code View, the removed line breaks just reappear when I save.

Please help!
I have to say, I prefer the lines of whitespace for readability. I've had a number of Pages-exported ePUBs sent to me, and they are literally unreadable--not even line breaks between paragraphs, etc. Absolute garbage to try to "fix."

I'll take the lines in Sigil any day. They're harmless, AFAIK, and I've never seen an issue with them.

Hitch
Hitch 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 12:56 PM.


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