mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
When computing whether whitespace should be collapsed or not, we have to consider empty fragments, since <br> will produce an empty fragment to force a line break. LineBox::is_empty_or_ends_in_whitespace() is amended to look at the length of the last fragment, and return true if it is 0.
2.4 KiB
2.4 KiB