Closed larsoner closed 1 year ago
I think the underlying issue is the NodeVisotor from docutils, which is used under the hood for rst source validation. When the code block is indented the code block's node.line
is None
. I did not dive deeper, so I don't know the exact reason.
I reduced the message's level to warning and stated explicitly that the message itself only is a warning and may be due to an indented code block but is not an error of itself.
Released in 1.2.0
To Dos
[X] I tested with the latest released version.
[X] I have checked the issues and think that this is not a duplicate.
[X] I added a very descriptive title to this issue.
Example Code (rst)
Relevant log output
Description
A nested/indented
.. code-block::
causes problems. Unindenting it fixes them (but then doesn't render in RST nested in the bulleted list).Operating System
macOS
Operating System Details
No response
Python Version
3.11.5
rstcheck Version
6.2.0, 1.1.1
Additional Context
No response