Added missing gitinspector tag to the XML output of the version flag.

This got accidentally removed when the implementation of the footer and
header functions in the format module were added.
This commit is contained in:
Adam Waldenberg 2012-10-21 00:42:31 +02:00
parent 00baf350a8
commit 4170c00c03
2 changed files with 5 additions and 3 deletions

View file

@ -102,7 +102,9 @@ if __name__ == "__main__":
elif o in("-r", "--responsibilities"):
__run__.responsibilities = True
elif o in("--version"):
format.output_header()
format.call_output_function(version.output_html, version.output_text, version.output_xml)
format.output_footer()
sys.exit(0)
elif o in("--grading"):
__run__.include_metrics = True

View file

@ -34,7 +34,7 @@ def output_html(string, _):
def output_text(_):
print("gitinspector {0}\n".format(__version__) + __doc__)
def output_xml(_):
def output_xml():
license_text = "\t\t" + __doc__.replace("\n", "\n\t\t")
print(string.format("\n\t<version>" + __version__ + "</version>\n" +
"\t<license-text>\n" + license_text + "\n\t</license-text>\n"))
print("\t<version>" + __version__ + "</version>\n" +
"\t<license-text>\n" + license_text + "\n\t</license-text>")