mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 13:55:00 +00:00
LibWeb: Convert a bunch of String::format() => String::formatted()
This commit is contained in:
parent
bd57fff6d4
commit
5e157eaf37
7 changed files with 10 additions and 13 deletions
|
@ -130,7 +130,7 @@ GUI::Variant DOMTreeModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
|
|||
}
|
||||
if (role == GUI::ModelRole::Display) {
|
||||
if (node.is_text())
|
||||
return String::format("%s", with_whitespace_collapsed(downcast<DOM::Text>(node).data()).characters());
|
||||
return with_whitespace_collapsed(downcast<DOM::Text>(node).data());
|
||||
if (!node.is_element())
|
||||
return node.node_name();
|
||||
auto& element = downcast<DOM::Element>(node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue