View Single Post
Old 02-19-2011, 09:58 AM   #4
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by ldolse View Post
As long as the <p> tags don't have a over-riding class assigned to them you can just do this in the css:

h2 + p {
text-indent:0;
}
p {
text-indent:whatever;
}

If there is an over-riding class I believe the above should still work as long as you remove any indent settings from that class.
there is always some calibre class following the <p, and it s the same class ( per book) whether the line is 1st in chapter or later in chapter but now that I know where to add spaces & where not to, to satisfy the tidy function, all is well

I am now using this - which preserves my preferred <p linespacing
find
</h2>\s*<p class="calibreN"
where N is is the right value for that book
replace all
</h2> <p style "text-indent:0;margin-bottom:0.3em"

then I go to stylesheet & edit margin-bottom to 0.3em for that same calibre style

I can do a book in well under a minute with this technique, as I do not have to add any new lines to style sheet

this is my manual workaround for the issue discussed ad-nauseum in other threads, after calibre had removed all blank lines.


PS

your h2+P ... construction - does that apply to a p following a h2 only, then ?
cybmole is offline   Reply With Quote