04-27-2009, 05:29 PM | #1 |
Connoisseur
Posts: 63
Karma: 10
Join Date: Mar 2009
Device: none
|
Remove spacing between paragraphs doesn't.
I tried converting an ebook with annoyingly large spaces between the paragraphs to epub, using this option, and nothing changed.
Is this a bug? Whether or no, is there another way to remove these spaces? |
04-27-2009, 05:32 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It depends on how the spaces are created in the source file. If they're "hard" spaces, they can't be removed.
|
04-27-2009, 05:53 PM | #3 |
Connoisseur
Posts: 63
Karma: 10
Join Date: Mar 2009
Device: none
|
I think I may have found the problem. I converted the file to html, and every paragraph is set up thus:
Code:
<div style="margin-top: 1em; text-indent: 1em"><font size="3">Blah blah blah, paragraph 1.</font></div><div style="margin-top: 1em"/> <div style="margin-top: 1em; text-indent: 1em"><font size="3">Blah blah blah, paragraph 2.</font></div><div style="margin-top: 1em"/> I've just re-converted it with instructions to use zero margins for every DIV tag, but it didn't help. Any suggestions on how I could force the book to behave? I really hate having every paragraph double-spaced this way. |
04-27-2009, 06:08 PM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Removing this type of spacing will be supported by calibre 0.6, until then you're out of luck.
|
04-27-2009, 06:23 PM | #5 |
Connoisseur
Posts: 63
Karma: 10
Join Date: Mar 2009
Device: none
|
I guess I'll just have to wait until then to read this book.
|
04-27-2009, 08:33 PM | #6 |
Guru
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Just open up the html file in a text editor and do a find/replace job.
Eg: Code:
<div style="margin-top: 1em; text-indent: 1em"><font size="3">Blah blah blah, paragraph 1.</font></div><div style="margin-top: 1em"/> Code:
<div style="margin-top: 1em; text-indent: 1em"> Code:
<div style="text-indent: 1em"> Code:
<div style="margin-top: 1em"/> |
04-28-2009, 04:53 AM | #7 |
Wizzard
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
Wouldn't just deleting (or replacing by nothing) all the '<div style="margin-top: 1em"/>'s work?
(The above's the quickest solution, while the 'better' solution would be to replace things such that you had '<p>Blah blah blah, paragraph 1.</p>', etc, then to style that in the header, e.g. Code:
<head> <style type="text/css"> p { text-indent: 1.5em; margin-top: 0; margin-bottom: 0} </style> </head> |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove Parargraph spacing | jhempel24 | Sigil | 7 | 09-10-2010 06:26 PM |
removing spacing between paragraphs WITHOUT touching indent? | ferossan | Calibre | 2 | 12-24-2009 02:12 PM |
remove space between paragraphs-yes the box is checked | Blurr | Calibre | 1 | 12-23-2009 06:34 AM |
Remove spacing between paragraphs - what about div tags ? | NASCARaddicted | Calibre | 5 | 11-07-2009 05:47 AM |
RFE: Remove remove tags in bulk edit | magphil | Calibre | 0 | 08-11-2009 10:37 AM |