From 8a9dcfc856741c60b9d82a3cb3d3472f0f5d3491 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 23 Feb 2018 13:46:28 +0000 Subject: [PATCH] Call the xml2rfc parser with normalize=True, in alignment with xml2rfc internal use. - Legacy-Id: 14686 --- ietf/submit/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/submit/forms.py b/ietf/submit/forms.py index b38351598..28b08b121 100644 --- a/ietf/submit/forms.py +++ b/ietf/submit/forms.py @@ -145,7 +145,7 @@ class SubmissionBaseUploadForm(forms.Form): os.environ["XML_LIBRARY"] = settings.XML_LIBRARY try: parser = xml2rfc.XmlRfcParser(str(tfn), quiet=True) - self.xmltree = parser.parse() + self.xmltree = parser.parse(normalize=True) ok, errors = self.xmltree.validate() except Exception as exc: raise forms.ValidationError("An exception occurred when trying to process the XML file: %s" % exc.msg)