View Single Post
Old 02-16-2011, 10:28 AM   #40
DMSmillie
Enquiring Mind
DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'
 
DMSmillie's Avatar
 
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
Quote:
Originally Posted by cybmole View Post
so how would you go about imposing that onto a book without lots of manual edits
Quote:
Originally Posted by JSWolf View Post
That's easy. [How to set a CSS class for no indent] But you will have to go in and make the manual edits.
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.
DMSmillie is offline   Reply With Quote