lipgloss icon indicating copy to clipboard operation
lipgloss copied to clipboard

Inline concatenates words from multiple lines

Open knz opened this issue 3 years ago • 3 comments

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.

knz avatar Sep 03 '22 21:09 knz

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

griimick avatar Oct 09 '22 09:10 griimick

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.

nemith avatar Jun 28 '23 02:06 nemith