summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-09-05 18:52:59 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-09-05 18:52:59 +0900
commitd78306c7f9c97d24648de2650a7bb99288da02f4 (patch)
treeb3849b83e33db18a05909bb12e675f508911d0aa /sphinx/directives/code.py
parenta16cca27ef1415ff271084f156e0fb33ccfbefae (diff)
downloadsphinx-git-d78306c7f9c97d24648de2650a7bb99288da02f4.tar.gz
Fix #8163: Update warning message for :dedent: option
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r--sphinx/directives/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py
index f1f4a341a..4ca849cf0 100644
--- a/sphinx/directives/code.py
+++ b/sphinx/directives/code.py
@@ -72,7 +72,7 @@ def dedent_lines(lines: List[str], dedent: int, location: Tuple[str, int] = None
return lines
if any(s[:dedent].strip() for s in lines):
- logger.warning(__('Over dedent has detected'), location=location)
+ logger.warning(__('non-whitespace stripped by dedent'), location=location)
new_lines = []
for line in lines: