Quote:
Originally Posted by DMSmillie
Ummm... a tad contradictory, JSWolf!
It'll depend on how your book is structured, and on the existing HTML code, cybmole. If the structure is fairly simple, and most of the paragraphs you'd want to set to have no indent follow immediately after a specific heading level, you might be able to do a search and replace along the following lines:
Search for:
</h2>
<p>
Replace with:
</h2>
<p class="noindent">
You'll need to include the appropriate characters for the [newline] characters included in the search and replace text, if there are any. What I've given above is just a rough concept, but hopefully might point you towards something you could use to add the "noindent" class to most if not all of the required paragraphs, and at least leave you with just a small amount of manual tidying up to do.
|
Actually using Calibre's extra css during the initial conversion makes it even easier than that (assuming the book uses heading tags):
h1+p,h2+p, h3+p,blockquote+p{text-indent:0;}
If heuristics and scene break detection/formatting is enabled you can also use:
p.softbreak+p,p.scenebreak+p,h1+p,h2+p, h3+p,blockquote+p{text-indent:0;}