nunomaduro / termwind

🍃 In short, it's like Tailwind CSS, but for the PHP command-line applications.
MIT License
2.29k stars 78 forks source link

[bug] Empty spaces between two elements #94

Closed butschster closed 3 years ago

butschster commented 3 years ago

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;
butschster commented 3 years ago

@xiCO2k @nunomaduro what do you think?

xiCO2k commented 3 years ago

Thanks @butschster. I like it.