Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2013, 02:18 PM   #1
jovercash
Junior Member
jovercash began at the beginning.
 
Posts: 3
Karma: 10
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.
jovercash is offline   Reply With Quote
Old 03-03-2013, 02:42 PM   #2
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: 29,782
Karma: 54830978
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 jovercash View Post
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.
This is NOT a S&R fault

You were relying on Tidy to fix the error (IMHO a poor practice. You take your chances Tidy will make the correct choice).
theducks is online now   Reply With Quote
Advert
Old 03-03-2013, 03:11 PM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
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.
user_none is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:55 PM.


MobileRead.com is a privately owned, operated and funded community.