bk icon indicating copy to clipboard operation
bk copied to clipboard

Handling whitespace in text content

Open tspivey opened this issue 3 years ago • 2 comments

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.

tspivey avatar Sep 19 '20 05:09 tspivey

yes, whitespace is handled poorly.

aeosynth avatar Sep 19 '20 18:09 aeosynth

whitespace is now condensed, which fixes your example, but is still not completely correct

aeosynth avatar Sep 21 '20 13:09 aeosynth