Quote:
Originally Posted by TheArtfulDodger
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.