termwind icon indicating copy to clipboard operation
termwind copied to clipboard

Missing after the last line space when inheriting the width on more of more than three lines.

Open ycs77 opened this issue 1 year ago • 0 comments

Now termwind can inherit width on two lines like:

https://github.com/nunomaduro/termwind/blob/9c030e68f200e039fb91182f407af60727e579fa/tests/render.php#L213-L222

But if add more than three lines, it will be missing after the last line space.

This unit test is failed:

$html = parse(<<<'HTML'
    <div class="w-10">
        <div class="w-full bg-red">AAA</div>
        <div class="w-full bg-blue">BBB</div>
        <div class="w-full bg-yellow">CCC</div>
    </div>
HTML);

// this is expected
expect($html)->toBe("<bg=red>AAA       </>\n<bg=blue>BBB       </>\n<bg=yellow>CCC       </>");

// // this is actual
// expect($html)->toBe("<bg=red>AAA       </>\n<bg=blue>BBB       </>\n<bg=yellow>CCC</>");

ycs77 avatar Jun 03 '24 13:06 ycs77