Thread: Global Replace
View Single Post
Old 08-29-2011, 03:08 AM   #1
signum
Zealot
signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.
 
Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
Global Replace

Here's a little glitch I haven't seen discussed anywhere else on this forum. I'm trying to do a global replace on some text, but it won't work the first time, but will work if I try it again. Specifically, I'm trying to replace the string

Code:
<p>#</p>
with

Code:
<hr />
everywhere in my document. The hash mark was substituted for a fancy graphic by the third-party program I used to convert a pdf to text. The fancy graphic in the original represents a scene break in the narrative. There are 16 of them.

So, I do a "replace all" and Sigil reports 16 changes. I immediately do a "replace all" again and Sigil again reports 16 changes. If I try it a third time, Sigil reports 0 changes.

The first time I noticed this, I had gone through making sure each replacement was what I wanted. Turned out, every candidate was needing to be changed, but that method didn't actually replace anything the first time through either.

I have a workaround, so it's not a huge problem, but it should probably be looked at some time.

Kubuntu 11.04
Sigil 0.4.1

Thanks in advance.
signum is offline   Reply With Quote