|
Okay, I received the sample orig.xhtml and it has spans treated like strutural items. I then imported that file into Sigil-2.7.6 and ran Mend and Prettify. I did the same with Sigil 2.8.0 with Mend and Prettify then diffed the results. They were the same.
No so bug in Sigil.
That said, the image of the output after running Sigil-2.8.0 prettify (see post above) showed no differences in how spans were treated from the original.
This can only happen if that xhtml file was linked to a style-sheet that uses the white-space property. It is a new safety measure added in Sigil 2.8.0.
My guess is that the stylesheet does use one of the css white-space properties and so Sigil 2.8.0 Mend and Prettify did not condense whitespace as it might damage the code.
If the linked stylesheet has whitespace properties set, they should expect few if any changes to whitespace running mending and prettifying.
If you want Mend and Prettify to actually condense whitespace properly. you should remove the use of white-space property in the css and instead wrap the code that needed it in "pre" open and close tags in the right places in the xhtml then remove that use of the white-space property.
My guess is that is what is going on here.
Hope this helps.
Update: hypothesis confirmed in pm, its linked stylesheet used white-space: pre-wrap. So Sigil 2.8.0 is working properly. No bug.
Last edited by KevinH; 06-17-2026 at 06:25 PM.
|