code-block does not recognize emphasis-lines option

Bug #1735779 reported by Doug Goldstein on 2017-12-01
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
doc8
Undecided
Unassigned

Bug Description

When using doc8 and validating RST files that have the emphasis-lines option per the docs at http://www.sphinx-doc.org/en/stable/markup/code.html this syntax is throwing a D000 error for 'code-block' directives:

.. code-block:: text
   :emphasize-lines: 2,3

   some text here
   some text here
   some text here
   some text here

Where this directive does not throw an error:

.. code-block:: text

   some text here
   some text here
   some text here
   some text here

ioggstream (rpolli) wrote :

The bug is in the `docutils` dependency. That package is on sourceforge and the GH mirror is out-of-sync since ages.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers