View Single Post
Old 01-29-2012, 11:47 PM   #1
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
XML error dialog in code view

I was just trying to fix an ePub I have. To do this, I needed to do two find and replaces. The first one was to change tags at the start of most lines, the second one was to change the tags at the end. But, after doing the first, when I tried to get to the find box to do the second find, I got the malformed XML error box (the one that asks if want to fix the problem automatically or manually). As I was in the process of fixing the code, I chose "manual", but this puts the cursor back into the code. This leaves no way to get back to do another find&replace to fix the code exactly how I want to. In most cases, this can be done with a single find&replace using a regex. But, sometimes a series of simple find&replaces is easier.

While writing this post, I hit another example of this behaviour. As I still had the invalid code displayed while I wrote this, I kept finding the error dialog displayed. The problem is that it is being displayed whenever the code view loses focus. This means if I go to a separate application to look at something, Sigil will prompt there is an error. It would be much better if this was only done when swapping between the code and book views or other parts of Sigil that needed the immediate check of the code.

Have I missed something to turn this off? Or can I request a fix?

David
davidfor is offline   Reply With Quote