nunomaduro/termwind

[bug] Empty spaces between two elements

butschster opened this issue · 2 comments

Hi guys!

Let's imagine two situations

Fist
Two elements, each on a new line

<div>
    <span class="px-1">hello</span>
    <span class="px-1">world</span>
</div>

Second
Two element on one line with space

<div>
    <span class="px-1">hello</span> <span class="px-1">world</span>
</div>

And what behavior we should expect on each case. I suggest the following behavior

In the first case we can remove empty space

&nbsp;hello&nbsp;&nbsp;world&nbsp;

In the second case we can keep space

&nbsp;hello&nbsp;&nbsp;&nbsp;world&nbsp;

@xiCO2k @nunomaduro what do you think?

Thanks @butschster. I like it.