View Single Post
Old 06-20-2012, 02:35 AM   #4
Iznogood
Guru
Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.
 
Iznogood's Avatar
 
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
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?
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	341
Size:	284.8 KB
ID:	88048   Click image for larger version

Name:	2.png
Views:	333
Size:	236.6 KB
ID:	88049   Click image for larger version

Name:	3.png
Views:	352
Size:	238.5 KB
ID:	88050   Click image for larger version

Name:	4.png
Views:	333
Size:	239.8 KB
ID:	88051  
Iznogood is offline