summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-07-24 23:09:54 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-07-24 23:09:56 +0900
commit0c4edbdb382d95bf898cce50ecf3b95174f27f91 (patch)
tree550cf5b057ca469b09c881319e0371fe991bf5c3 /utils
parent3d0818f1cb7de3cad84e7c1d750c71e53bc736b1 (diff)
downloadsphinx-git-0c4edbdb382d95bf898cce50ecf3b95174f27f91.tar.gz
doclinter: Allow a very long literal string
Diffstat (limited to 'utils')
-rw-r--r--utils/doclinter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/doclinter.py b/utils/doclinter.py
index 52b2fe892..bb11decaf 100644
--- a/utils/doclinter.py
+++ b/utils/doclinter.py
@@ -50,6 +50,9 @@ def lint(path: str) -> int:
if re.match(r'^\s*\.\. ', line):
# ignore directives and hyperlink targets
pass
+ elif re.match(r'^\s*``[^`]+``$', line):
+ # ignore a very long literal string
+ pass
else:
print('%s:%d: the line is too long (%d > %d).' %
(path, i + 1, len(line), MAX_LINE_LENGTH))