MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   Paragraph spacing (https://www.mobileread.com/forums/showthread.php?t=95697)

jhempel24 08-23-2010 02:24 PM

Paragraph spacing
 
It seems this happened with the last update, but I could be wrong. I'm trying to convert PRC to ePub, and it puts a space between the paragraphs.

Even clicking on "remove spacing" doesn't do anything....any help from anyone?

Is there an easy way to create an ePub from PRC?

JSWolf 08-23-2010 02:55 PM

Sure is.. use Calibre. Then pop the ePub into Sigil to edit the CSS to remove the excess line spaces.

jhempel24 08-23-2010 03:05 PM

Okay, my next question is, what do I do to the CSS?

I can't find anything in there that says "paragraph" or anything like that...sorry, I'm new to the Sigil program, and am no HTML reader LOL.

theducks 08-23-2010 03:59 PM

Quote:

Originally Posted by jhempel24 (Post 1071589)
Okay, my next question is, what do I do to the CSS?

I can't find anything in there that says "paragraph" or anything like that...sorry, I'm new to the Sigil program, and am no HTML reader LOL.

Look at a "bad paragraph" (set an insert point with a mouse click)
Now switch to CodeView (CV)
Look at the "class(es) entry for the paragraph.. Note the name.
While there, look at other containers (eg <div>, <body> ) that include the paragraph.,
Now find those names in the CSS.
Body class starts it off :thumbsup:
If there is a line space there, try changing or commenting out ( /* stuff */ ) that

If your P tag is inside a DIV, then try that class
last, try your P class:thumbsup:

DoctorOhh 08-24-2010 12:18 AM

Quote:

Originally Posted by jhempel24 (Post 1071589)
Okay, my next question is, what do I do to the CSS?

I can't find anything in there that says "paragraph" or anything like that...sorry, I'm new to the Sigil program, and am no HTML reader LOL.

If you view the pages in code view you will see many paragraphs they are differentiated by the various classes. If calibre didn't remove the spacing it is probably because the spaces are hard coded using either
Quote:

<br class="calibre4" /> or <p class="calibre9">&nbsp;</p>
keep in mind the class could have any title in quotes.

Just use the find and replace tool to replace these with nothing and your spaces should go away. Don't forget to save after your edits are complete.

jhempel24 08-24-2010 01:14 AM

Thanks guys, I was able to get things squared away. In the <p> section of the paragraph there was a .5 margin in the paragraph spacing and removing it did the trick


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

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.