The contents of <pre> is rendered by browsers with whitespace as-is. As such, pyhtml-enhanced's automatic indentation causes content to appear incorrectly.
import pyhtml as p
print(
p.html(
p.pre(
"Example text"
)
)
)
Expected output
<html>
<pre>Example text</pre>
</html>
Actual output
<html>
<pre>
Example text
</pre>
</html>
Notes
This also affects <textarea> tags.
To fix
Fixing this requires a significant refactoring of the rendering system, so I might not do so soon.
The contents of
<pre>
is rendered by browsers with whitespace as-is. As such,pyhtml-enhanced
's automatic indentation causes content to appear incorrectly.Expected output
Actual output
Notes
This also affects
<textarea>
tags.To fix
Fixing this requires a significant refactoring of the rendering system, so I might not do so soon.