Closed hassanakbar4 closed 3 years ago
@{"email"=>"jordi.palet@consulintel.es", "name"=>nil, "username"=>nil} uploaded file draft-palet-v6ops-rfc7084-bis-transition-00.xml
(34.8 KiB)
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented
Thank you, Jordi.
If I arrange things a bit differently internally in xml2rfc, in order to deal with the input file using MAC line endings, I get this error message instead; I hope that will help you proceed. I'll run the changes through the test suite, and make this fix part of the next release, so we deal bettwer with MAC line endings.):
Parsing file tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml
WARNING: Parsing Error: Opening and ending tag mismatch: section line 299 and middle, line 634, column 12 (line 634)
ERROR: Unable to parse the XML document: tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml
/home/henrik/src/xml2rfc/trunk/cli/tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml: Line 634: Opening and ending tag mismatch: section line 299 and middle
/home/henrik/src/xml2rfc/trunk/cli/tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml: Line 1: Document is empty
/home/henrik/src/xml2rfc/trunk/cli/tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml: Line 1: Start tag expected, '<' not found
FWIW, the error message above tells me that the section which starts on line 299 doesn't have a matching end tag; instead a end tag was found.
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new
to closed
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` to
fixed`
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented
Fixed in [2339]:
Refactored the input file reading to accept files with Mac line endings, using python's Universal Newline support. This should make xml2rfc deal correctly with input files following DOS, MAC and Linux line-ending conventions.
component_Version 2 cli
resolution_fixed
type_defect
| by jordi.palet@consulintel.esI’m trying to upload a document with is a cut down version from a previous one …
I use Mac OS X BBEdit (before was TextWrangler), it seems to use x0D as line separator.
Sample file with the problem (I deleted on extra at the end of the security section.
Issue migrated from trac:332 at 2021-10-20 18:24:38 +0500