04-14-2012, 07:21 AM | #1 |
Member
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 |
04-14-2012, 08:03 AM | #2 | |
Well trained by Cats
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:
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> Code:
p {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0.5em;
margin-top: 0.5em;
padding-bottom: 0;
padding-top: 0
}
The same theory applies for: Code:
<p class=calibre5">words here.</p> Code:
.calibre5 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0.5em;
margin-top: 0.5em;
padding-bottom: 0;
padding-top: 0
}
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. |
|
Advert | |
|
04-15-2012, 08:08 AM | #3 |
Color me gone
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. |
04-15-2012, 10:54 AM | #4 |
eBook Enthusiast
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.
|
04-21-2012, 05:51 AM | #5 |
Resident Curmudgeon
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
|
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.
|
Advert | |
|
04-21-2012, 06:29 AM | #6 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
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.
|
04-25-2012, 01:23 PM | #7 | |
DRM hater
Posts: 945
Karma: 2066176
Join Date: Jun 2010
Location: Michigan
Device: Nook ST glow, Kindle Voyage
|
Quote:
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. |
|
04-27-2012, 07:16 PM | #8 |
Resident Curmudgeon
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 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.
|
04-28-2012, 11:32 AM | #9 |
Member
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 |
05-01-2012, 07:54 AM | #10 | |
Guru
Posts: 733
Karma: 3593438
Join Date: Jun 2011
Location: Australia
Device: Kobo Glo. Galaxy Tab S 8.4
|
Quote:
You pointed me in the right direction with this post, thanks. |
|
05-06-2012, 04:18 AM | #11 | |
Resident Curmudgeon
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:
|
|
05-11-2012, 08:26 AM | #12 |
Member
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.
|
05-15-2012, 09:43 PM | #13 |
Resident Curmudgeon
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.
|
05-16-2012, 12:04 PM | #14 |
Junior Member
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. |
05-16-2012, 12:29 PM | #15 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
|
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 |