Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RST217 Mismatch: both interpreted text role suffix and reference suffix.
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Print 'Hello world' to the terminal. | ||
RST uses single backticks or back-quotes for various things including | ||
interpreted text roles and references. | ||
Without a semi-colon prefix or suffix, `example` has the default role. | ||
A prefix like :code:`example` or a suffix like `example`:math: is allowed. | ||
However, trailing underscores have special meaning for referencing, thus | ||
`code`:example:_ is considered to be an error: | ||
$ flake8 --select RST RST217/roles.py | ||
RST217/roles.py:10:1: RST17 Mismatch: both interpreted text role suffix and reference suffix. | ||
""" | ||
|
||
print("Hello world") |