mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 23:15:08 +00:00
LibHTML: Collapse all-whitespace LayoutText into a single ' ' char.
This commit is contained in:
parent
8a0e21b22b
commit
0522a8f71c
3 changed files with 21 additions and 1 deletions
|
@ -38,7 +38,7 @@ void dump_tree(const LayoutNode& node)
|
|||
printf(" ");
|
||||
printf("%s{%p}", node.class_name(), &node);
|
||||
if (node.is_text())
|
||||
printf(" \"%s\"", static_cast<const LayoutText&>(node).node().data().characters());
|
||||
printf(" \"%s\"", static_cast<const LayoutText&>(node).text().characters());
|
||||
printf("\n");
|
||||
++indent;
|
||||
node.for_each_child([](auto& child) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue