View Single Post
Old 04-05-2014, 09:10 AM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,708
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by TheArtfulDodger View Post
I meant to mention that I have turned that off and still Sigil re-formats the HTML - but not the EPub result!
I don't follow what you mean.
When I choose "Pretty Print Tidy" (as opposed to "HTML Tidy") and uncheck both the "Open" and "Save" options in the Clean Source Preferences, then Sigil makes no formatting changes to my HTML code (unless there's a drastic, well-formed issue upon opening, and even then, I get a choice whether to let Sigil fix it or not). The spacing between lines of code, the depth of the indentation--whathaveyou--all remains preserved throughout the opening and saving of documents. Even code prepared externally and imported remains unchanged (with the exception of a few unicode characters that Qt has trouble dealing with).

I'm not sure what you're doing wrong, but if your (x)html is valid to begin with, then turning off the open/save clean source settings will ensure that the formatting of your code is preserved.
DiapDealer is offline   Reply With Quote