Menu

#141 Handling inline in manpage writer

None
closed-fixed
nobody
None
5
2017-06-19
2017-06-17
No

For following input:

.. code-block:: C

   int main (void);

rst2man reports an errror:

[yamato@master]~% rst2man /tmp/c.rst 
NotImplementedError: docutils.writers.manpage.Translator visiting unknown node type: inline
Exiting due to error.  Use "--traceback" to diagnose.
Please report errors to <docutils-users@lists.sf.net>.
Include "--traceback" output, Docutils version (0.13.1 [release]),
Python version (2.7.13), your OS type & version, and the
command line used.

The attached patch suppresses the error.

1 Attachments

Discussion

  • Günter Milde

    Günter Milde - 2017-06-18
    • status: open --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2017-06-18

    Applied in Revision 8116. Thanks for report and patch.

    Another example failing for the same reason is a custom role like

    .. role:: foobar
    
    Test with :foobar:`holl`.
    

    A workaround for the original problem is to set "syntax-highlight" to "none" for the manpage writer.

     
  • Masatake YAMATO

    Masatake YAMATO - 2017-06-19

    A workaround for the original problem is to set "syntax-highlight" to "none" for the manpage writer.

    Useful information. I need this. Thank you.

     

Log in to post a comment.