Skip to content

Commit 61c449b

Browse files
AlexWaygoodhugovk
andauthored
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent 1ebab9f commit 61c449b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinxlint/checkers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def check_missing_space_after_literal(file, lines, options=None):
8888
)
8989

9090

91-
_LONE_DOUBLEBACKTICK_RE = re.compile("(?<!`)``(?!`)")
91+
_LONE_DOUBLE_BACKTICK_RE = re.compile("(?<!`)``(?!`)")
9292

9393

9494
@checker(".rst", ".po")
@@ -102,7 +102,7 @@ def check_unbalanced_inline_literals_delimiters(file, lines, options=None):
102102
if paragraph.count("|") > 4:
103103
return # we don't handle tables yet.
104104
paragraph = clean_paragraph(paragraph)
105-
for lone_double_backtick in _LONE_DOUBLEBACKTICK_RE.finditer(paragraph):
105+
for lone_double_backtick in _LONE_DOUBLE_BACKTICK_RE.finditer(paragraph):
106106
error_offset = paragraph[: lone_double_backtick.start()].count("\n")
107107
yield (
108108
paragraph_lno + error_offset,

0 commit comments

Comments
 (0)