bk
bk copied to clipboard
Handling whitespace in text content
bk currently doesn't handle whitespace properly. The default behaviour in browsers is to collapse spaces in some tags (e.g. <p>). As an example, if you have:
<p>This is a
test.</p>
You should end up with This is a test.
on output.
Instead, the embedded newline is left in.
yes, whitespace is handled poorly.
whitespace is now condensed, which fixes your example, but is still not completely correct