Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--v3 fails with python stacktrace on test document #346

Closed
ietf-svn-bot opened this issue Jul 17, 2018 · 5 comments
Closed

--v3 fails with python stacktrace on test document #346

ietf-svn-bot opened this issue Jul 17, 2018 · 5 comments
Labels
medium text Issues in text output

Comments

@ietf-svn-bot
Copy link

resolution_fixed type_defect | by julian.reschke@gmx.de


Parsing file test.xml
WARNING: The 'docName' attribute of the <rfc/> element should have a revision number as the last component when submitted: docName="draft-foo-bar-02".
test.xml(2539): Warning: Removed a redundant ascii= attribute from <title>
test.xml(2541): Warning: Removed a redundant ascii= attribute from <organization>
test.xml(12): Warning: Expected a category, one of std,bcp,exp,info,historic, but found none
test.xml(12): Warning: The 'docName' attribute of the <rfc/> element should have a revision number as the last component: docName="draft-foo-bar-02".
Traceback (most recent call last):
  File "/bin/xml2rfc", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/xml2rfc/run.py", line 384, in main
    textwriter.write(filename)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 163, in write
    text = self.render(self.root, width=72, joiners=joiners)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 2495, in render_rfc
    ctext = self.render(c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1300, in render_front
    parts.append(self.render(c, width, **kwargs))
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1776, in render_note
    text = self.join(text, c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 211, in join
    etext = self.render(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1741, in render_name
    hang=kwargs['joiners'][e.tag].hang
KeyError: 'name'


Issue migrated from trac:346 at 2022-02-05 12:44:25 +0000

@ietf-svn-bot
Copy link
Author

@julian.reschke@gmx.de uploaded file v3test.xml (106.4 KiB)

@ietf-svn-bot
Copy link
Author

@julian.reschke@gmx.de edited the issue description

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed status from new to closed

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed resolution from `` to fixed

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


Fixed in 02e1788:

Removed an assert that prevented rendering of document top when some elements are so long that the line width will be more than 72 characters. Added support for with . Added format default for included references. Added warning for s without 'pn' attribute (which can happen if the is pointing at an element for which pn is not generated (this is probably an error in RFC 7998). Fixes issue #346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium text Issues in text output
Projects
None yet
Development

No branches or pull requests

1 participant