View Single Post
Old 06-06-2025, 04:24 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,803
Karma: 6000000
Join Date: Nov 2009
Device: many
It works as designed. You used no pre-wrap (pre) tag. Prettify assumes you want to actually change xhtml whitespace to prettify the layout. Prettifying has no idea about your css, it is run on xhtml source. If you want to preserve your pre-wrapped code, through the prettifying process you need to use the pre and code xhtml tags and not assume css is doing anything here as css can and does change independently of your xhtml. It was designed to do that.

So either use pre/code tags in your xhtml source before running Prettify or don't choose to Prettify the xhtml code.

Last edited by KevinH; 06-06-2025 at 12:57 PM.
KevinH is offline   Reply With Quote