Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-27-2009, 05:29 PM   #1
Djehuty
Connoisseur
Djehuty began at the beginning.
 
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?
Djehuty is offline   Reply With Quote
Old 04-27-2009, 05:32 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,749
Karma: 4998511
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.
kovidgoyal is online now   Reply With Quote
 
Enthusiast
Old 04-27-2009, 05:53 PM   #3
Djehuty
Connoisseur
Djehuty began at the beginning.
 
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"/>
And so on.

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.
Djehuty is offline   Reply With Quote
Old 04-27-2009, 06:08 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,749
Karma: 4998511
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.
kovidgoyal is online now   Reply With Quote
Old 04-27-2009, 06:23 PM   #5
Djehuty
Connoisseur
Djehuty began at the beginning.
 
Posts: 63
Karma: 10
Join Date: Mar 2009
Device: none
I guess I'll just have to wait until then to read this book.
Djehuty is offline   Reply With Quote
Old 04-27-2009, 08:33 PM   #6
sherman
Addict
sherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animals
 
Posts: 265
Karma: 6566
Join Date: Aug 2008
Location: New Plymouth - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo
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"/>
Find
Code:
<div style="margin-top: 1em; text-indent: 1em">
Replace all
Code:
<div style="text-indent: 1em">
And (maybe) do the same with
Code:
<div style="margin-top: 1em"/>
sherman is offline   Reply With Quote
Old 04-28-2009, 04:53 AM   #7
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,343
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
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>
gwynevans is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 07:33 AM.


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