mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 11:12:54 +00:00
LibHTML: Collapse whitespace in LayoutText unless white-space: pre;
Before breaking the Text node contents into words, collapse all of the whitespace into single space (' ') characters. This fixes broken rendering of paragraphs with newlines in them. :^)
This commit is contained in:
parent
b4389ca4b0
commit
2ac190dc5f
Notes:
sideshowbarker
2024-07-19 11:44:49 +09:00
Author: https://github.com/awesomekling
Commit: 2ac190dc5f
2 changed files with 22 additions and 4 deletions
|
@ -28,4 +28,6 @@ private:
|
|||
void for_each_word(Callback) const;
|
||||
template<typename Callback>
|
||||
void for_each_source_line(Callback) const;
|
||||
|
||||
String m_text_for_rendering;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue