mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 05:27:36 +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
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