View Single Post
Old 11-21-2014, 03:45 PM   #1
rpspringuel
Enthusiast
rpspringuel began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Feb 2014
Device: Kindle 4
Saving/Opening without code clean-up

While under most circumstances I very much appreciate the fact that calibre's editor will clean-up and fix simple code mistakes so that a book has valid html when it is closed and reopened, there is one circumstance I've come across where this is actually problematic.

When I'm in the middle of making a big structural and or linking edit, I often end up with links that point to anchors which don't yet exist because they point to the anchor as it is supposed to be rather than as it is currently (of course, sometimes mistakes also creep in, but the "Check Book" button helps alot with these). Most of the time, I just leave the editor open so that the these invalid links aren't fixed by calibre's code clean-up operations. However, there are occasions when I have to close calibre before I finish the edit (especially if the project is big and I have to turn off or restart my computer for some reason). In these instances, calibre's code clean-up "fixes" these invalid links (or at least tries to), which actually means that they won't point where I want them to when I've finished the editing process. I then have to go find and edit them again to get to the end state that I want.

As a result, I'd like a way to save the current state of the file and reopen it without calibre making any changes. Is this currently possible? If not, does the program architecture allow for something like this to be implemented? If so, where in the code should I be looking to make the necessary changes?
rpspringuel is offline   Reply With Quote