nodeparser: Print debug message before child

This puts the message up top, where it can be seen,
and not at the other end of an endless tree of children.

Update tests to match.
This commit is contained in:
Matthias Clasen 2021-03-09 00:43:47 -05:00
parent 09af40faeb
commit 124f60593b
2 changed files with 2 additions and 2 deletions

View File

@ -2767,13 +2767,13 @@ render_node_print (Printer *p,
start_node (p, "debug");
append_node_param (p, "child", gsk_debug_node_get_child (node));
/* TODO: We potentially need to escape certain characters in the message */
if (message)
{
_indent (p);
g_string_append_printf (p->str, "message: \"%s\";\n", message);
}
append_node_param (p, "child", gsk_debug_node_get_child (node));
end_node (p);
}

View File

@ -1,5 +1,5 @@
debug {
message: "I'm a debug node.";
child: container {
}
message: "I'm a debug node.";
}