![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
|
spacing between paragraphs
I have a few e-books that contain spacing between paragraphs. I know some people actually prefer that, but I hate it, I want the text to look like it does in a book, not with spacing between every paragraph. Only when there are actuall blank lines.
What's the easiest way to remove those, or is there none? Modify Epub doesn't seem to have a setting for it. I've done a convert epub to epub with the "delete blank lines between paragraphs" in heuristic processing checked, but that doesn't seem to help here. Probably they're not blank lines but some setting like "xx space before/after paragraph", like MS Word's dumb default. Do I first have to get a PhD in css editing or something to remedy this (which is not going to happen), or is there an easy way? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,062
Karma: 237062052
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
No easy way other than editing the css. And no, you don't need a degree to do this. It's not actually that hard, once you've familiarized yourself with it a bit.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,936
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 241
Karma: 12092
Join Date: May 2014
Device: Kobo Libra 2
|
The brute force method, which works maybe 80% of the time, is:
Convert books > Look & Feel > [v] Remove space between paragraphs, and Indent size 1.5em |
![]() |
![]() |
![]() |
#5 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,637
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
If a bought book has the "children's book" spacing (and maybe stupidly indent too) I edit rather than using the automatic conversion. I do convert ALL added ebooks with the remove line-height and white-space in the CSS removal settings. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,936
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,637
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
Sometimes though a blank paragraph or a <br /> is used for paragraph spacing and I'd fix that. The only useful thing I see for <br /> in an ebook is to break a heading on to two or more lines as you might want only one heading tag per heading for automatic TOC generation or automatic file breaks in conversions etc. There is no reason ever for an empty <p></p>, either the preceding or current paragraph should have a style. |
|
![]() |
![]() |
![]() |
#8 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,581
Karma: 14328510
Join Date: Nov 2019
Device: none
|
I also use the brute force method fogice mentioned. Then I get out my big sledge hammer and fix other things (things that calibre's books converter doesn't handle) with the following regexp for the css file. I do this in Sigil. The following goes in the upper search and replace box and in the replace with box is nothing. So all of those css directives are removed, regardless of the value. Afterwords all text is the same size, except for h2, h3, etc. (although many authors format headers with the p tag so they end up not looking as nice). One of the main things I'm after is being able to open a book and not needing to fiddle with the font size slider. The page-break stuff was recently added after I had a book with weird page breaks.
Code:
( display: block; | font-size: .* | letter-spacing:.* | line-break: strict; | line-height: .* | page-break-after:.* | page-break-before:.* | page-break-inside:.* | vertical-align: .* | white-space: pre-wrap; ) |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,062
Karma: 237062052
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,936
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
There's no spacing between paragraphs | Tior500 | Conversion | 1 | 12-02-2019 10:18 AM |
Touch Extra spacing between paragraphs on my e-books | Aiden | Barnes & Noble NOOK | 8 | 12-11-2013 11:17 AM |
Spacing between paragraphs not converting | beccas716 | Conversion | 4 | 10-11-2013 10:25 AM |
Removing spacing between paragraphs, not between sections | jlbfoot | Calibre | 4 | 12-03-2010 10:41 PM |
Remove spacing between paragraphs doesn't. | Djehuty | Calibre | 6 | 04-28-2009 04:53 AM |