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

Inline concatenates words from multiple lines #116

Open
knz opened this issue Sep 3, 2022 · 2 comments
Open

Inline concatenates words from multiple lines #116

knz opened this issue Sep 3, 2022 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@knz
Copy link

knz commented Sep 3, 2022

When I do style.Render("hello\nworld")
I am expecting 2 different words.

If I use Inline, the result is helloworld without space.

I think we want 2 separate words here, i.e. replace newlines by spaces during inline mode.

Found while working on #109.

@griimick
Copy link

griimick commented Oct 9, 2022

Should we trim trailing newlines as it would add trailing spaces?

@nemith
Copy link

nemith commented Jun 28, 2023

I found this behavior confusing. Is there a way to apply just a style and leave newlines alone. Without Inline trailing newlines are padded. With Inline newlines are removed completely.

To continue the CSS analogy I want a span and not a div.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants