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, 08:30 PM   #1
Mr. Goodbar
Wizard
Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.
 
Posts: 1,005
Karma: 98078
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini 4
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, 01: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: 44,413
Karma: 23977332
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
Advert
Old 06-01-2008, 10:47 PM   #3
Mr. Goodbar
Wizard
Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.
 
Posts: 1,005
Karma: 98078
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini 4
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, 10: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: 44,413
Karma: 23977332
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, 10: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: 44,413
Karma: 23977332
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
Advert
Old 06-01-2008, 11:10 PM   #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: 76,063
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
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, 03: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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
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 offline   Reply With Quote
Old 06-02-2008, 07:38 AM   #8
Mr. Goodbar
Wizard
Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.
 
Posts: 1,005
Karma: 98078
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini 4
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, 07:39 AM   #9
Mr. Goodbar
Wizard
Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.Mr. Goodbar makes omelettes without breaking eggs.
 
Posts: 1,005
Karma: 98078
Join Date: Jul 2006
Location: Atlanta, GA
Device: iPad Mini 4
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 05:11 PM
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) David Derrico Calibre 5 08-04-2010 12:13 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
Insert Blank Lines Between Paragraphs Timoleon Calibre 14 03-22-2009 02:43 PM


All times are GMT -4. The time now is 02:43 PM.


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