Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2012, 07:21 AM   #1
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
How to remove blank line between paragraphs

Please could someone tell me how to reomve the blank line between paragraphs in book view in Sigil. I hope this will just involve clicking a box rather than some complicated codeing issue .

Regards
gogreen is offline   Reply With Quote
Old 04-14-2012, 08:03 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by gogreen View Post
Please could someone tell me how to reomve the blank line between paragraphs in book view in Sigil. I hope this will just involve clicking a box rather than some complicated codeing issue .

Regards
Not possible in the GUI (BV).

That is probably a Paragraph (top or botom) MARGIN issue.

It is only complicated because you won't try to understand the basics (there ARE really other complicated issues that require detective work to unravel style nesting)

Open the book, click the cursor (to set the insertion point) on a paragraph with this problem, above AND below.
Now switch to Code view. (don't click anything yet).
If you see a simple P tag, you are looking for a generic P style:
Code:
<p>words here.</p>
Then the style sheet could have (note the p has no dot in front)
Code:
p {
    border-bottom: 0;
    border-top: 0;
    display: block;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    padding-bottom: 0;
    padding-top: 0
    }
This style controls that paragraph, change the Red value to a simple 0

The same theory applies for:
Code:
<p class=calibre5">words here.</p>
Except this time you are looking for the style (note the leading dot) :
Code:
.calibre5 {
    border-bottom: 0;
    border-top: 0;
    display: block;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    padding-bottom: 0;
    padding-top: 0
}
The curly brackets are the boundaries of the style definition.

CSS is simple once you realize that you can control the entire book from one place with a few changes, instead of painfully editing each page or paragraph.
theducks is online now   Reply With Quote
Advert
Old 04-15-2012, 08:08 AM   #3
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
It is necessary to look at the code because there may be more than one cause for the extra space. Instead of using CSS as shown above, someone may have inserted <br/> at the end of each paragraph. There is no way any program can cope with the several ways to insert spaces between paragraphs without messing something else up.

Someday when everyone does everything in a standard way, you may get your wish. However, by then, someone else will come along, like Apple, and start doing stuff in a non-standard way again. Sigh.
mrmikel is offline   Reply With Quote
Old 04-15-2012, 10:54 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
You might find it easier to use Calibre. Do an "ePub to ePub" conversion, and check the "Remove spacing between paragraphs" check box. It won't work in all cases, but it will sort out the problem in the majority of circumstances.
HarryT is offline   Reply With Quote
Old 04-21-2012, 05:51 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by HarryT View Post
You might find it easier to use Calibre. Do an "ePub to ePub" conversion, and check the "Remove spacing between paragraphs" check box. It won't work in all cases, but it will sort out the problem in the majority of circumstances.
And you might find you've just made a mess and also lost the space for the section breaks. It's not worth the risk to do an ePub>ePub conversion. It's better to learn what it is that should be fixed/changed to get the desired results.
JSWolf is offline   Reply With Quote
Advert
Old 04-21-2012, 06:29 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by JSWolf View Post
And you might find you've just made a mess and also lost the space for the section breaks. It's not worth the risk to do an ePub>ePub conversion. It's better to learn what it is that should be fixed/changed to get the desired results.
I've done it with lots of books, Jon, and it's never messed up the section breaks. Give it a go - it does work.
HarryT is offline   Reply With Quote
Old 04-25-2012, 01:23 PM   #7
GreenMonkey
DRM hater
GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.
 
GreenMonkey's Avatar
 
Posts: 945
Karma: 2066176
Join Date: Jun 2010
Location: Michigan
Device: Nook ST glow, Kindle Voyage
Quote:
Originally Posted by HarryT View Post
I've done it with lots of books, Jon, and it's never messed up the section breaks. Give it a go - it does work.
Yes, it does tend to take out the section breaks in most books. I've found myself cleaning up after this a lot...calibre adds spaces by default for some reason (I don't really understand why this is on by default).

See my old thread on this same problem:

https://www.mobileread.com/forums/sho...d.php?t=106305

Convert in Calibre with this under extra CSS to get the result you want:

p {margin-top: 0em; margin-bottom: 0em}

see "paragraph spacing" here:

http://manual.calibre-ebook.com/conv...html#look-feel

For more info. There's a bit more about adding indents in the CSS they recommend on the calibre page.

Last edited by GreenMonkey; 04-25-2012 at 01:27 PM.
GreenMonkey is offline   Reply With Quote
Old 04-27-2012, 07:16 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by HarryT View Post
I've done it with lots of books, Jon, and it's never messed up the section breaks. Give it a go - it does work.
I've done it as well and it doesn't always mess up section breaks. But sometimes it does and sometimes it reduces the section break space to that of too small.
JSWolf is offline   Reply With Quote
Old 04-28-2012, 11:32 AM   #9
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
I found { margin: 0; padding: 0; } works just fine. The main problem is knowing where to add the codes in sigil. Now got all isues sorted. For what its worth I have also found running Epub to Epub with Calibre also sorts alot of problems to do with margins e.g., the cover picture white border etc.

Regards
gogreen is offline   Reply With Quote
Old 05-01-2012, 07:54 AM   #10
danskmacabre
Guru
danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.danskmacabre ought to be getting tired of karma fortunes by now.
 
Posts: 733
Karma: 3593438
Join Date: Jun 2011
Location: Australia
Device: Kobo Glo. Galaxy Tab S 8.4
Quote:
Originally Posted by HarryT View Post
You might find it easier to use Calibre. Do an "ePub to ePub" conversion, and check the "Remove spacing between paragraphs" check box. It won't work in all cases, but it will sort out the problem in the majority of circumstances.
I've been working on an Ebook and noticed Calibre now has a very nice "Look and feel" option to change lots of things to do with formatting.
You pointed me in the right direction with this post, thanks.
danskmacabre is offline   Reply With Quote
Old 05-06-2012, 04:18 AM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by gogreen View Post
I found { margin: 0; padding: 0; } works just fine. The main problem is knowing where to add the codes in sigil. Now got all isues sorted. For what its worth I have also found running Epub to Epub with Calibre also sorts alot of problems to do with margins e.g., the cover picture white border etc.

Regards
You don't need padding 0 if you don't use padding. Its just extra code that does nothing. Also, ePub > ePub can cause havoc with your ePub some of the time. So it's not worth doing just to be on the safe side.
JSWolf is offline   Reply With Quote
Old 05-11-2012, 08:26 AM   #12
gogreen
Member
gogreen began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: none
Well the recommendation to use { margin: 0; padding: 0; } comes directly from sigil on their frequently asked questions list. OK if padding is not necessary and causes no harm I can live with it. Regarding your second point, I would expect most people with the sense to write a book to have the sense to make copies before they attempt anything. All I can say for some peaople you are proberly right and for others not. However I found it a good experience that sorted out all my remaining issues. Essentially when running the sigil converted book directly in Aldiko on my smart phone, all I could use was the standard settings with a less than perfect layout and poor book cover presentation. After the conversion using epub to epub with calibre everything now looks and works perfect, including the advanced formatting settings and book cover. It also looks and works perfect with Kindle after doing an epub to mobi conversion you undoubtedly agree with.
gogreen is offline   Reply With Quote
Old 05-15-2012, 09:43 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've seen some ePub > Mobi conversions that look better then a lot of publisher Mobi.
JSWolf is offline   Reply With Quote
Old 05-16-2012, 12:04 PM   #14
Greg P
Junior Member
Greg P began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2012
Device: Kindle
Here is the simple way. Note that I would agree that you must learn some code to be able to fix various issues.

Look at your xhtml, you should see something like:

<p>One paragraph.</p>

<p>Another paragraph</p>

Change this to

<p>One paragraph.
<br />Another paragraph</p>

This is less complicated than fiddling with the CSS. If you need to do a number of these, then use Find/Replace.
Greg P is offline   Reply With Quote
Old 05-16-2012, 12:29 PM   #15
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Greg P View Post
Here is the simple way. Note that I would agree that you must learn some code to be able to fix various issues.

Look at your xhtml, you should see something like:

<p>One paragraph.</p>

<p>Another paragraph</p>

Change this to

<p>One paragraph.
<br />Another paragraph</p>

This is less complicated than fiddling with the CSS. If you need to do a number of these, then use Find/Replace.
Sorry, but that's a HORRIBLE solution. PLEASE don't do it that way.
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
blank lines between paragraphs franklekens Kobo Reader 71 01-26-2015 12:52 PM
Insert blank line between paragraphs - just body text? kristalana Conversion 2 05-14-2014 11:08 AM
Bullet - Remove blank line before and after Kol Sigil 3 02-14-2014 06:55 AM
Blank lines between paragraphs? ascherjim OpenInkpot 30 12-03-2009 12:19 AM
Removing blank lines between paragraphs? corroonb Workshop 3 08-13-2009 04:23 PM


All times are GMT -4. The time now is 01:15 PM.


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