Skip to content

Commit

Permalink
Fix check_missing_space_in_hyperlink docstring
Browse files Browse the repository at this point in the history
Fix the docstring so that it doesn't feature a "good" example that's still not good :)
  • Loading branch information
kartben authored Sep 11, 2024
1 parent 82e6aec commit 0a86ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxlint/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def check_backtick_before_role(file, lines, options=None):
def check_missing_space_in_hyperlink(file, lines, options=None):
"""Search for hyperlinks missing a space.
Bad: `Link text<https://example.com>_`
Good: `Link text <https://example.com>_`
Bad: `Link text<https://example.com>`_
Good: `Link text <https://example.com>`_
"""
for lno, line in enumerate(lines, start=1):
if "`" not in line:
Expand Down

0 comments on commit 0a86ee3

Please sign in to comment.