forked from AuroraMiddleware/gtk
builder-tool: Don't strip the xml declaration
This is useful for interoperability with other tools.
This commit is contained in:
parent
7222bda146
commit
c30fc92b3e
@ -1264,9 +1264,16 @@ dump_element (Element *element,
|
||||
g_fprintf (output, "/>\n");
|
||||
}
|
||||
|
||||
static void
|
||||
write_xml_declaration (FILE *output)
|
||||
{
|
||||
g_fprintf (output, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
||||
}
|
||||
|
||||
static void
|
||||
dump_tree (MyParserData *data)
|
||||
{
|
||||
write_xml_declaration (data->output);
|
||||
dump_element (data->root, data->output, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user