mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Change printElement()
to not output unnecessary space
No functional changes.
This commit is contained in:
parent
d5a82040e3
commit
956d4c381b
Notes:
github-actions[bot]
2025-01-25 13:17:13 +00:00
Author: https://github.com/gmta
Commit: 956d4c381b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3363
Reviewed-by: https://github.com/AtkinsSJ ✅
23 changed files with 73 additions and 73 deletions
|
@ -34,8 +34,8 @@ function println(s) {
|
|||
}
|
||||
|
||||
function printElement(e) {
|
||||
let element_string = `<${e.nodeName} `;
|
||||
if (e.id) element_string += `id="${e.id}" `;
|
||||
let element_string = `<${e.nodeName}`;
|
||||
if (e.id) element_string += ` id="${e.id}"`;
|
||||
element_string += ">";
|
||||
println(element_string);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue