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.
This commit is contained in:
James Westman 2024-05-02 20:16:37 -05:00
parent 988e69ab25
commit c502dee36b
4 changed files with 1 additions and 21 deletions

View file

@ -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)