Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Inteligent <markups> search and replace - I mean doing </markups> in the same step #1228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Epub editing is about xhtml. So sometimes you want to tweak bad formatted 
ebooks. Some examples usually find in bad-styled epubs:
+ Usage of <p class="HeadingWhatever"> instead of <h?>.
+ Usage of <blockquote> or <q> instead of <p class="IWantMoreLeftMargin">.

Of course you can fix this wrong format design with appropriate CSS styles and 
then changing the conflictive <markup> into the correct one. But the problem is 
that if I search and replace <blockquote> by <p class="IWantMoreLeftMargin">, I 
still have to change </blockquote> into </p> :(

So it would be really nice if Search and Reaplace function had an optional 
feature (in addition to "normal", "Match case" or any other) called "Markup 
mode". In this mode it would search and replace the beginning markup AND ALSO 
its closing one.

Original issue reported on code.google.com by alr...@gmail.com on 5 Feb 2012 at 8:44

GoogleCodeExporter commented 9 years ago
This can be done with Find and Replace already but just entering the 
appropriate end tags and regex expression.   Try to second guess a replace 
could cause more issues.  A saved searches mechanism could make this easier, 
but this is a separate issue that should probably be available soon.

Original comment by meme90...@gmail.com on 25 Mar 2012 at 7:27

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:20