From c502dee36bebe38efe0fe8534540ba62c743cc4c Mon Sep 17 00:00:00 2001 From: James Westman Date: Thu, 2 May 2024 20:16:37 -0500 Subject: [PATCH] output: Don't add @generated notice to subtemplates There's already a notice at the top of the file, it doesn't need to be in subtemplates. Fixes #158. --- blueprintcompiler/outputs/xml/__init__.py | 2 +- tests/samples/gtkcolumnview.ui | 10 ---------- tests/samples/list_factory.ui | 5 ----- tests/samples/subscope.ui | 5 ----- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/blueprintcompiler/outputs/xml/__init__.py b/blueprintcompiler/outputs/xml/__init__.py index f23dacb..862df14 100644 --- a/blueprintcompiler/outputs/xml/__init__.py +++ b/blueprintcompiler/outputs/xml/__init__.py @@ -375,7 +375,7 @@ class XmlOutput(OutputFormat): xml.end_tag() elif isinstance(extension, ExtListItemFactory): - child_xml = XmlEmitter() + child_xml = XmlEmitter(generated_notice=False) child_xml.start_tag("interface") child_xml.start_tag("template", **{"class": extension.gir_class}) self._emit_object_or_template(extension, child_xml) diff --git a/tests/samples/gtkcolumnview.ui b/tests/samples/gtkcolumnview.ui index 53126b0..22c09e8 100644 --- a/tests/samples/gtkcolumnview.ui +++ b/tests/samples/gtkcolumnview.ui @@ -10,11 +10,6 @@ corresponding .blp file and regenerate this file with blueprint-compiler. - ]]> @@ -25,11 +20,6 @@ corresponding .blp file and regenerate this file with blueprint-compiler. -