Subject: [xml2rfc] #399 (Version 2 cli): ValueError: invalid literal for int() with base 10: 'false'

From: "xml2rfc issue tracker" <[email-masked]>
Date: Tue, 26 Mar 2019 14:27:57 -0000

#399: ValueError: invalid literal for int() with base 10: 'false'

 When using the web interface and v3 I get a crash:

 {{{
 Traceback (most recent call last):
   File "/usr/local/bin/xml2rfc", line 11, in <module>
     sys.exit(main())
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/run.py", line 549,
 in main
     writer.write(filename)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 227, in write
     lines = self.render(self.root, width=72, joiners=joiners)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 270, in render
     res = func(e, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 2836, in render_rfc
     lines = self.ljoin(lines, c, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 445, in ljoin
     res = mklines(self.render(e, width, **kwargs), e)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 270, in render
     res = func(e, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 2023, in render_middle
     lines = self.ljoin(lines, c, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 445, in ljoin
     res = mklines(self.render(e, width, **kwargs), e)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 270, in render
     res = func(e, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 3104, in render_section
     lines = self.ljoin(lines, c, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 445, in ljoin
     res = mklines(self.render(e, width, **kwargs), e)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 270, in render
     res = func(e, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 3472, in render_t
     text = fill(self.inner_text_renderer(e), width=width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 503, in inner_text_renderer
     text += self.render(c, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 270, in render
     res = func(e, width, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/text.py",
 line 4316, in render_xref
     text += ' \u2026' '%04d' % int(pageno)
 ValueError: invalid literal for int() with base 10: 'false'
 }}}

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

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

---

From: "xml2rfc issue tracker" <[email-masked]>
Date: Tue, 26 Mar 2019 15:49:30 -0000

Changes (by [email-masked]):

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

Comment:

 Fixed in [3086]:

 Fixed an issue with xref rendering where the 'pageno' parameter had been
 given a non-numeric default value.  Fixes issue #399.

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

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