Quote:
Originally Posted by KevinH
Hi,
The change you want makes no sense as it removes whitespace that may in fact be part of the paragraph both before and after the exact text (up to one character of each.
Now it doesn't work, I tried it with the two Cleaning types (at Windows machine).
Yes, pretty print has changed a lot, It will no longer trim whitespace from inside of paragraph tags as it should not since whitespace can be important both before and after any text (at least up to one character's worth).
And how would you expect this to turn out? Is there at least one char of white space after the footnote marker and before the "Some text." and after the text?
I am not sure either of these are bugs. You seem to be asking for the old Tidy approach of a deep clean. I am sorry but those days are pretty much gone. If you want me to modify prettyprint to reduce multiple spaces into one space inside of the p tag, that may be doable, but stripping it all away is simply incorrect.
KevinH
|
Also spaces from the beginning or end of the paragraph.
FWIW, calibre preserves whitespace entirely, on the rationale that when using <pre>, whitespace matters.
IIRC, only whitespace outside a block-level tag gets reformatted when pretty-printing.
Sigil may or may not wish to follow the same approach.
...
Seems like an unwise (and unlikely) thing to use, IMHO, but I'd hate to be responsible for Sigil breaking a book because of this.