Subject: [xml2rfc] #380 (Version_3_cli_txt): --v3 fails with stack trace

From: "xml2rfc issue tracker" <[email-masked]>
Date: Sat, 17 Nov 2018 14:16:03 -0000

#380: --v3 fails with stack trace

 {{{
   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'

 }}}

-- 
-----------------------------------+--------------------
 Reporter:  [email-masked]  |      Owner:
     Type:  defect                 |     Status:  new
 Priority:  medium                 |  Milestone:
Component:  Version_3_cli_txt      |    Version:  2.13.x
 Keywords:                         |
-----------------------------------+--------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/380>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>

---

From: "xml2rfc issue tracker" <[email-masked]>
Date: Sat, 17 Nov 2018 14:51:53 -0000

Comment (by [email-masked]):

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

-- 
------------------------------------+--------------------
Resolution:                         |   Keywords:
------------------------------------+--------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/380#comment:1>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>

---

From: "xml2rfc issue tracker" <[email-masked]>
Date: Sat, 17 Nov 2018 15:37:13 -0000

Changes (by [email-masked]):

 * status:  new => closed
 * resolution:   => fixed

Comment:

 Fixed in [2745]:

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

-- 
------------------------------------+--------------------
  Reporter:  [email-masked]  |      Owner:
      Type:  defect                 |     Status:  closed
  Priority:  medium                 |  Milestone:
 Component:  Version_3_cli_txt      |    Version:  2.13.x
Resolution:  fixed                  |   Keywords:
------------------------------------+--------------------

Ticket URL: </ticket/380#comment:2>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>