08-23-2010, 02:43 PM | #1 |
Wizard
Posts: 2,157
Karma: 7068605
Join Date: Dec 2007
Device: Amazon Kindle Paperwhite, B&N Nook Colro
|
Remove Parargraph spacing
I want to remove the spacing that Calibre created with converting PRC to ePub...the check box in calibre isn't doing it.
I looked on the Sigil site and they said to add: p {margin: 0; padding: 0;} to the end of the CSS file. I copied and pasted that...and it did nothing. This is driving me crazy, any help would be greatly appreciated! Why isn't there an easy way to convert things and keep them looking the same? UGH. |
08-23-2010, 02:49 PM | #2 |
Nameless Being
|
Off the top of my head I'd say that in the (x)html files you'll find something like: <p class="calibre3"> (or some other number). Find that .calibre3 (or some other number) in the CSS file and make your margin and padding changes there.
Personally I wish Calibre dispensed with the whole <p class="x"> stuff and just used <p>. |
08-23-2010, 02:51 PM | #3 |
Wizard
Posts: 2,157
Karma: 7068605
Join Date: Dec 2007
Device: Amazon Kindle Paperwhite, B&N Nook Colro
|
PERFECT!!!
I noticed that when looking deeper, but didn't make the connection to edit the section...I removed the spacing in that section and PERFECT! Thanks!! |
08-26-2010, 12:55 PM | #4 | ||
Connoisseur
Posts: 67
Karma: 40
Join Date: Aug 2010
Device: iPad, Kindle Paperwhite
|
I don't know if it's the same issue but I would like to know also how to remove the extra spacing created by too many paragraphs , ex:
Quote:
Quote:
|
||
08-26-2010, 01:46 PM | #5 | |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
For the "un-split lines" button, I programed [space],[Delete], (some documents need a second [delete]) I set the extra mouse buttons to Page-Down and Page-Up. Another button is set to insert a "dash" I normally use the Kensington, faced backwards (I use the buttons only) with my Left hand and a regular mouse with my right hand (to place the insert point and regular clicks) I can usually blast through a chapter in a few minutes, fixing wrap and hyphen issues Last edited by theducks; 07-26-2015 at 12:39 PM. |
|
09-07-2010, 05:30 AM | #6 |
Wizard
Posts: 2,157
Karma: 7068605
Join Date: Dec 2007
Device: Amazon Kindle Paperwhite, B&N Nook Colro
|
You know, I just got your Signature there theducks: That's such a great game! LOL.
|
09-10-2010, 06:26 AM | #7 | |
Guru
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
Quote:
You could do a s&r regex, minimal match - in code view (As long as the new paragraphs haven't got a class - if they have becomes more complicated) search '([a-z]) </p>## <p>' replace with '\1 ' (without quotes) notice the search has three spaces, and the replace has 1 space also the two # should both be replaced with a copied carriage-return / linefeed characters (select and copy a blank line in codeview, appears like a highlighted space) If the lines don't end in spaces you can remove the space before the '</p>' in the search term. I also do a similar one, which does lines that end in a comma. Hope this is understandable. |
|
09-10-2010, 06:26 PM | #8 | |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove Books - Restoring Confirm to remove books | Caffey | Calibre | 6 | 09-20-2010 09:23 AM |
Line spacing | Ivo | Kobo Reader | 3 | 06-30-2010 12:54 PM |
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 |
Remove spacing between paragraphs doesn't. | Djehuty | Calibre | 6 | 04-28-2009 04:53 AM |