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

Superfluous insertion of whitespace in text #100

Open
thchr opened this issue Feb 27, 2024 · 0 comments
Open

Superfluous insertion of whitespace in text #100

thchr opened this issue Feb 27, 2024 · 0 comments

Comments

@thchr
Copy link

thchr commented Feb 27, 2024

I expect the below to produce "foobarbaz" - but it produces "foo bar baz":

text(parsehtml("<em>foo</em>bar<em></em>baz").root)

The motivating case was:

text(parsehtml("<math><mrow><msub><mrow><mi>MoSe</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></math>").root)

which produces "MoSe 2" rather than "MoSe2".

The issue is with the apparently redundant ' ' in

print(io, c.text, ' ')

Would it be acceptable to change this? If so, I can make a PR.

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

1 participant