If the first paragraph of a chapter/section always follows something consistent; hr, h3, or p class="something"... then you can combine css classes to account for those first paragraphs.
I use something like:
Code:
.calibre9 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 15px
}
h3 + p.calibre9 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 0;
}
That way, all paragraphs will be indented except those that immediately follow an h3 tag (or whatever tag.class consistently precedes the first paragraph in your document). That way you don't have to walk through the document and change the css class of each first paragraph manually. You'll still have to manually remove any 's that are being used for indentation purposes, but that's not that difficult.
Just be warned that if you want to subsequently use the same epub to create a mobi file, only calibre (that I know of for sure) will "recognize" (and honor) that css combining method when converting to mobi. I know for a fact that kindlegen will ignore it.
But it works great if you're just fixing up epubs for your own use.