|03-03-2013, 02:18 PM||#1|
Join Date: Sep 2012
Device: Kindle Keyboard
7.1 big in search n replace cleanup.
In previous versions if I do a search and replace to remove a span or links or something of than nature in an epub like
<h2 class="calibre10" id="calibre_pb_21"><span class="calibre6 bold"><a class="calibre21" href="../Text/html_split_004#filepos3071"><span class="bold">Seven</span></a></span></h2>
if I searched on
<a class="calibre21" href="../Text/html_split_004#filepos[0-9]+">
part and replaced it with blank (to remove it altogether), if the S&R was set to regex and all HTML files the trailing </a> has always been removed in all the files. In 7.1 it is left in and in some cases all HTML after the line being modified is just removed. It looks like the automatic cleanup code is not being run anymore. in the case of all HTML files like it always has been in the past.
|03-03-2013, 02:42 PM||#2|
Well trained by Cats
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
You were relying on Tidy to fix the error (IMHO a poor practice. You take your chances Tidy will make the correct choice).
|03-03-2013, 03:11 PM||#3|
Sigil & calibre developer
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
What you're seeing is by design. Sigil shouldn't be randomly changing markup behind your back. If you want to replicate the old behavior after doing the F&R, right click in CV and use the reformat HTML options.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Search and Replace||SOThunder||Conversion||2||04-29-2012 08:29 AM|
|Search and replace||TdeV||Sigil||1||10-30-2011 04:45 PM|
|search and replace - drops blanks in replace ?||cybmole||Conversion||10||03-13-2011 03:07 AM|
|Search and replace in 0.2.0||paulpeer||Sigil||7||03-13-2010 11:59 AM|
|Why no search and replace?||charleski||Sigil||10||11-24-2009 04:13 PM|