Skip to content

Commit

Permalink
fix divergence between expectation and reality
Browse files Browse the repository at this point in the history
Apparently there's a bug in rst-lint, where it can not see below the
paragraph resolution? unclear.
  • Loading branch information
xmo-odoo authored and peterjc committed Dec 8, 2021
1 parent d8e6497 commit 58bc8be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/RST219/bad_sub_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
so triggers an error:
$ flake8 --select RST RST219/bad_sub_ref.py
RST219/bad_sub_ref.py:4:1: RST219 Inline substitution_reference start-string without end-string
RST219/bad_sub_ref.py:3:1: RST219 Inline substitution_reference start-string without end-string.
Note that the line number is wrong here, it looks rst-lint is unable
to understand that paragraphs have multiple lines, so every issue of a
paragraph gets assigned to the first line. Running ``rst-lint``
directly against this content has the same issue.
One potential way to avoid this using ``|000...00>``
instead (wrapping in backticks as a inline literal).
Expand Down

0 comments on commit 58bc8be

Please sign in to comment.