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 05-31-2008, 09:30 PM   #1
Mr. Goodbar
Guru
Mr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmos
 
Posts: 945
Karma: 21976
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini Retina and iPad Air 2
How to eliminate blank lines between paragraphs with Calibre

I have a few mobi files that I want to convert over for my Sony. Does anyone know if it is possible to eliminate the blank lines between the paragraphs? I believe I may be able to use a command in the override css area, but I don't know what that would be. Thanks in advance.
Mr. Goodbar is offline   Reply With Quote
Old 06-01-2008, 02:59 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: 26,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
depends on what the cause of the blank lines is. Try using mobi2oeb and look over the resulting HTML
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 06-01-2008, 11:47 PM   #3
Mr. Goodbar
Guru
Mr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmos
 
Posts: 945
Karma: 21976
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini Retina and iPad Air 2
Quote:
Originally Posted by kovidgoyal View Post
depends on what the cause of the blank lines is. Try using mobi2oeb and look over the resulting HTML
This is what I'm seeing after the paragraph finishes:

</p><div height="0%"></div>
Mr. Goodbar is offline   Reply With Quote
Old 06-01-2008, 11:54 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: 26,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's a tough one, Because of the way the html->LRF conversion works, calibre always ends the current paragraph when it sees a <div> tag irrespective of its height. Then the next <p> tag will start a new paragraph, which means there will end up being a blank line.
kovidgoyal is offline   Reply With Quote
Old 06-01-2008, 11:58 PM   #5
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: 26,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the next version of the mobi converter will have some special code to take care of this.
kovidgoyal is offline   Reply With Quote
Old 06-02-2008, 12:10 AM   #6
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: 38,804
Karma: 19656443
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by kovidgoyal View Post
the next version of the mobi converter will have some special code to take care of this.
Wonderful. I really dislike blank lines except to denote a new section.
JSWolf is offline   Reply With Quote
Old 06-02-2008, 04:01 AM   #7
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: 65,639
Karma: 44618293
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
Quote:
Originally Posted by Mr. Goodbar View Post
This is what I'm seeing after the paragraph finishes:

</p><div height="0%"></div>
Doing a search and replace of "<div height="0%"></div>" with an empty string should eliminate the blanks. You can then recreate the LRF book from the HTML.
HarryT is online now   Reply With Quote
Old 06-02-2008, 08:38 AM   #8
Mr. Goodbar
Guru
Mr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmos
 
Posts: 945
Karma: 21976
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini Retina and iPad Air 2
Quote:
Originally Posted by kovidgoyal View Post
the next version of the mobi converter will have some special code to take care of this.
Thanks for the support. I was able to clean up the html in BD after using mobi2oeb, but having it done in Calibre would be great.
Mr. Goodbar is offline   Reply With Quote
Old 06-02-2008, 08:39 AM   #9
Mr. Goodbar
Guru
Mr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmosMr. Goodbar has become one with the cosmos
 
Posts: 945
Karma: 21976
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini Retina and iPad Air 2
Quote:
Originally Posted by HarryT View Post
Doing a search and replace of "<div height="0%"></div>" with an empty string should eliminate the blanks. You can then recreate the LRF book from the HTML.
Yep, I got it cleaned up in BD. I completely forgot about mobi2oeb as a method to convert to html. Another method I tried couldn't handle the compression and that was when I posted.
Mr. Goodbar 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
Lines became paragraphs after .lit to .mobi conversion Piper_ Calibre 11 09-19-2010 06:11 PM
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) David Derrico Calibre 5 08-04-2010 01:13 AM
Blank lines between paragraphs? ascherjim OpenInkpot 30 12-03-2009 01:19 AM
Removing blank lines between paragraphs? corroonb Workshop 3 08-13-2009 05:23 PM
Insert Blank Lines Between Paragraphs Timoleon Calibre 14 03-22-2009 03:43 PM


All times are GMT -4. The time now is 04:06 PM.


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