Help with removing indents from beginning paragraphs
I'm pretty compulsive about having the first paragraph of a chapter -- or beginning paragraphs of a book, where appropriate -- begin with no indent.
Most or all of the Gutenberg ebooks and virtually all of the ones on Mobilread all begin chapters with indents, unlike most commercial ebooks.
My solution so far has been to create an extra parameter in the .css stylesheet...for example:
.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
}
Added style:
.calibre91 {
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;
Following that, I go to the code view and add a "1" to the "<p class="calibre9">" to each beginning paragraph for which I wish to remove the indent. For books with up to 125 - 150 chapters, this becomes very tedious. Especially when many books also contain primitive " " to create indents. Removing these universally with regex removes them for all paragraphs in the book. So it's been all manual.
Is there a regex script I can use for these situations? Anybody??
Thanks!
|