11-05-2009, 04:31 PM | #1 |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
Remove spacing between paragraphs - what about div tags ?
Currently I converting a few html files to epub.
I use the paragraph tags <p> and </p> to mark a new paragraph (wow, who would have thought that) When I convert from html to epub, I use the "Remove spacing between paragraphs" command. I know, this command sets an intent of 1.5 em on a paragraph - and I love it. With this, my ebooks look even closer to real books. However, latelty I started to use div tags in the html files to to "enhance" the look of the text. For example, I use margin-left and margin-right on a few lines, so that the outfit of some of the text differs from the rest of the text. In this case, the special text is a list of things with numbers in front of it. I want it to look like: normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, 1.special text, special text 2.special text, special text 3.special text, special text normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, As I said, I use div tags for this (I am a novice on html so maybe I am wrong, but personally, I think div tags are great). However, this also caused some problems, because the "Remove spacing between paragraphs" command not only sets an intent on the p-tag but also on the div tags. So now my text looks something like: normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, 1.special text, special text 2.special text, special text3.special text, special text normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, normal text, See what I mean ? The list part doesn't look even anymore. The "1" has an intent - even thought I don't want it to have on. I noticed all this stuff is can be changed by editing the stylesheet.css file - but this can become tedious. So, to sum it all up: Is there a way to tell Calibre to set an intent on the p tags - but to leave the div tags alone ? Thanks in advance Last edited by NASCARaddicted; 11-05-2009 at 04:44 PM. |
11-05-2009, 05:31 PM | #2 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Advert | |
|
11-05-2009, 10:38 PM | #3 |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
thanks alot :-)
|
11-06-2009, 02:40 AM | #4 |
neilmarr
Posts: 7,215
Karma: 6000059
Join Date: Apr 2009
Location: Monaco-Menton, France
Device: sony
|
My problem (using calibre) is that several books recently have downloaded as one giant paragraph from start to finish. It makes reading a chore. I'm a technodunce and can't find a way to fix this. Any (simple) advice? Hoots. Neil
|
11-06-2009, 10:10 AM | #5 |
creator of calibre
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Depends on the input format. Sometimes the input format itself has everything in one large paragraph.
|
Advert | |
|
11-07-2009, 05:47 AM | #6 |
neilmarr
Posts: 7,215
Karma: 6000059
Join Date: Apr 2009
Location: Monaco-Menton, France
Device: sony
|
Thanks, Kovid. I'll do some digging to see if I can find a fix. Cheers. Neil
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove Parargraph spacing | jhempel24 | Sigil | 7 | 09-10-2010 06:26 PM |
Questions about <p> and <div> and paragraph spacing | droople | Sigil | 7 | 08-14-2010 12:03 PM |
removing spacing between paragraphs WITHOUT touching indent? | ferossan | Calibre | 2 | 12-24-2009 02:12 PM |
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 |