Menu

#334 Table cell with only $ have info warning

closed-invalid
nobody
tables (1)
5
2020-03-03
2017-12-02
No

I found this while trying to debug README on PyPI wasn't processing

==================
Term
==================
$
==================

While this seems to work with regular rst2html, it seems to cause a warning with --strict.

rst2html.py break.rst --strict
break.rst:4: (INFO/1) Possible incomplete section title.
Treating the overline as ordinary text because it's so short.
Exiting due to level-1 (INFO) system message.

If $ is switched out, it works.

If the $ is escaped, i.e. \$, then it will work.

Docutils 0.14, Python 3.6.3

I am wondering if it's related to this http://docutils.sourceforge.net/BUGS.html#known-bugs

Blank first columns in simple tables with explicit row separators silently swallow their input. They should at least produce system error messages. But, with explicit row separators, the meaning is unambiguous and ought to be supported:

==============  ==========
Table with row  separators
==============  ==========
                                   and blank
--------------  ----------
                                   entries
--------------  ----------
                                   in first
--------------  ----------
                                    columns.
==============  ==========

Discussion

  • Günter Milde

    Günter Milde - 2017-12-03
    • status: open --> closed-invalid
     
  • Günter Milde

    Günter Milde - 2017-12-03

    Thank you for reporting a problem you found in Docutils.

    It is, however a feature, not a bug:

    You already presented several ways around the exit.
    Additional alternatives are: --report=info instead of --strict, replace the $ with a character outside the set of section title markup characters.

     

    Last edit: Günter Milde 2017-12-03

Log in to post a comment.