headless-browser: Don't print extra newline after layout tree dumps

The layout tree dump text already contains a final newline, so we don't
need to use outln() and add an extra one.
This commit is contained in:
Andreas Kling 2023-03-25 12:09:34 +01:00
parent a15a44cfc8
commit 71bdee2837
Notes: sideshowbarker 2024-07-17 06:35:16 +09:00

View file

@ -244,7 +244,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
view->on_load_finish = [&](auto const&) {
auto layout_tree = view->dump_layout_tree().release_value_but_fixme_should_propagate_errors();
outln("{}", layout_tree);
out("{}", layout_tree);
fflush(stdout);
event_loop.quit(0);