View Single Post
Old 02-21-2011, 11:15 AM   #74
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,093
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
I now just use an in-line style statement, as it's easy to add with sigil's find / replace engine ( which retains recent code)

so I find a <p which follows a </h2> and replace
e.g. find
h2>\s*<p class="calibre2"
replace all
</h2> <p style "text-indent:0;margin-bottom:0.3em " - ( my preferred line space needs to be in there also )

less neat - but quick to do. the number after calibre varies from book to book.
The problem with this way is changing it later. (you also have no OTHER styling )

It takes a few moments to read the code and 'tune-up' your REGEX.
I keep a 'REGEX Notes' (txt) file and paste sample as well as both the terms along with my notes on what it does. Copy and Paste into the S+R boxes, adjust the tags. Fire in the Hole
theducks is offline   Reply With Quote