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 stack trace #380

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

--v3 fails with stack trace #380

ietf-svn-bot opened this issue Nov 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


  File "/bin/xml2rfc", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/xml2rfc/run.py", line 425, in main
    writer.write(filename)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 117, in write
    text = self.render(self.root, width=72, joiners=joiners)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 147, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 2487, in render_rfc
    ctext = self.render(c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 147, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1693, in render_middle
    text = self.join(text, c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 166, in join
    etext = self.render(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 147, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 2760, in render_section
    text = self.join(text, c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 166, in join
    etext = self.render(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 147, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 2760, in render_section
    text = self.join(text, c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 166, in join
    etext = self.render(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 147, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1724, in render_name
    return fill(self.inner_text_renderer(e).strip(), width=width-hang, hang=hang)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 233, in inner_text_renderer
    text += self.render(c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 147, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 851, in render_cref
    return self.quote_renderer(e, width, '//', source, None, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 258, in quote_renderer
    kwargs['joiners'].update({ 't':       joiner(*, '\n\n', *, 0, 0), })
KeyError: 'joiners'


Issue migrated from trac:380 at 2022-02-05 12:46:44 +0000

@ietf-svn-bot
Copy link
Author

@julian.reschke@gmx.de uploaded file foo.xml (108.5 KiB)

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


Cannot reproduce here with switches --v3 --html; which command line arguments are you using, please?

@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 ddb8d42:

Filled in missing rendering values for the case when cref is being rendered in inline context in the v3 text renderer. Fixes issue #380.

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