Skip to content

Commit 8a9dcfc

Browse files
committed
Call the xml2rfc parser with normalize=True, in alignment with xml2rfc internal use.
- Legacy-Id: 14686
1 parent 742ad09 commit 8a9dcfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/submit/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def clean(self):
145145
os.environ["XML_LIBRARY"] = settings.XML_LIBRARY
146146
try:
147147
parser = xml2rfc.XmlRfcParser(str(tfn), quiet=True)
148-
self.xmltree = parser.parse()
148+
self.xmltree = parser.parse(normalize=True)
149149
ok, errors = self.xmltree.validate()
150150
except Exception as exc:
151151
raise forms.ValidationError("An exception occurred when trying to process the XML file: %s" % exc.msg)

0 commit comments

Comments
 (0)