Skip to content

Commit e79eb56

Browse files
committed
Changed the xml parser settings for legacy xml draft submissions to remove comments before converting to .txt. Fixes and issue with comments in <artwork> text.
- Legacy-Id: 17297
1 parent 6adc707 commit e79eb56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/submit/forms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def format_messages(where, e, log):
241241
file_name['txt'] = os.path.join(settings.IDSUBMIT_STAGING_PATH, '%s-%s.txt' % (self.filename, self.revision))
242242
try:
243243
if xml_version != '3':
244+
self.xmltree = parser.parse(remove_comments=True, quiet=True)
245+
self.xmlroot = self.xmltree.getroot()
244246
pagedwriter = xml2rfc.PaginatedTextRfcWriter(self.xmltree, quiet=True)
245247
pagedwriter.write(file_name['txt'])
246248
else:

0 commit comments

Comments
 (0)