summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2012-12-28 13:24:55 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-04-09 23:14:36 +0200
commite4b98d842ee34bf06e1afd22966ffe56885f546b (patch)
treecfdcac11e4d5d3bad549184d4faa7ce5d28d0033 /giscanner/girwriter.py
parent5ed56c0b62f917b448d28bf4742300fa173dbd90 (diff)
downloadgobject-introspection-e4b98d842ee34bf06e1afd22966ffe56885f546b.tar.gz
giscanner: fix broken xml:whitespace attributes in .gir files
The XML specification clearly states it's xml:space http://www.w3.org/TR/xml/#sec-white-space https://bugzilla.gnome.org/show_bug.cgi?id=628739
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index d6b3485b..2578a331 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -126,7 +126,7 @@ and/or use gtk-doc annotations. ''')
for key, value in node.attributes:
self.write_tag('attribute', [('name', key), ('value', value)])
if hasattr(node, 'doc') and node.doc:
- self.write_tag('doc', [('xml:whitespace', 'preserve')],
+ self.write_tag('doc', [('xml:space', 'preserve')],
node.doc)
def _append_node_generic(self, node, attrs):