Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling whitespace in text content #4

Open
tspivey opened this issue Sep 19, 2020 · 2 comments
Open

Handling whitespace in text content #4

tspivey opened this issue Sep 19, 2020 · 2 comments

Comments

@tspivey
Copy link

tspivey commented Sep 19, 2020

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.

@aeosynth
Copy link
Owner

yes, whitespace is handled poorly.

@aeosynth
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants