Great! I just installed it and tried to turn off automatic cleaning of code. I'm glad to report that while I was working in code view, all seemed to work fine. I saved a test file, and the code of the saved file was exactly as I had typed it in code-view.
Then I switched to book view, and back to code view again. Alas, this switch tempered quite a lot with my code.
Screenshots attached. Steps for procedure:
1) Open Sigil and start new project. Turn off clean code
2) Paste some html code into Section0001.xhtml (screenshot 1.png)
3) Save file
4) Some minor changes appeared, most noticeably a blank line at the top of the document (screenshot 2.png)
5) Extract the saved code and compare it with the original - they were almost identical
6) Switch to book-view and back to code view (screenshot 3.png)
7) Notice the differences (highlighted in screenshot 4.png): all my instances of ndash and mdash had been converted to a "-" so it was impossible to see the difference. All my instances of rsquo had been replaced with an apostrophe (I always use lsquo and rsquo in quotations to make it easier to search and still be able to distinguish between end of quotation and apostrophes.
To me it seems that the switch from book-view to code-view ignores the setting of cleaning code. Is it supposed to behave in this manner, or is it a bug?
|