GNOME Bugzilla – Bug 628739
Wrong attribute used in GIR files
Last modified: 2015-02-07 16:46:28 UTC
The doc element in GIR files has the xml:whitespace attribute set, but the correct attribute, according to the XML specification, is xml:space.
For reference, the relevant part of the XML spec is: http://www.w3.org/TR/REC-xml/#sec-white-space This is quite annoying, because any serious attempt at validating a GIR file as correct XML will fail because of that. I can try to come up with a patch for that, but a preliminary question is: If this is fixed, would it have any impact on consumers of GIR files ?
Created attachment 241027 [details] [review] giscanner: fix broken xml:whitespace attributes in .gir files
Created attachment 241035 [details] [review] giscanner: fix broken xml:whitespace attributes in .gir files Forgot to add bug link to commit message...
Review of attachment 241035 [details] [review]: The risk here to consumers is pretty low; the only thing I can think of is custom tools honoring our "xml:whitespace", but they can just update their code to check for both.
Comment on attachment 241035 [details] [review] giscanner: fix broken xml:whitespace attributes in .gir files Committed and pushed as https://git.gnome.org/browse/gobject-introspection/commit/?id=e4b98d842ee34bf06e1afd22966ffe56885f546b
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]