Closed GameDungeon closed 1 year ago
Could you please give some HTML sample code? I'll check that tomorrow.
Testing it using your pages, this works in the HTML viewer and then is flattened in the generated PDF.
<div>
<h1>Pre Tags</h1>
<p>This is some sample CSS:</p>
<pre>
a {
text-decoration: none;
}
</pre>
</div>
That should now work with v2.4.21
Thanks for making a change so quickly. One thing to note, pre tags apply their functionality to other tags inside them.
This is a very common pattern that does not quite work yet.
<div>
<h1>Pre Tags</h1>
<p>This is some sample CSS:</p>
<pre><code>
a {
text-decoration: none;
}
</code></pre>
</div>
OK, I've just added preserveLeadingSpaces:true
to all the children of a PRE
. I'm not sure it's the expected behavior 🤷♂
That's similar to how it works in the spec, so that will probably be good enough generally. Thanks a ton.
In HTML the \