summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-09-13 01:41:03 +0900
committerGitHub <noreply@github.com>2020-09-13 01:41:03 +0900
commitc05c1320fae002384f9e53b9858137e14e3bf456 (patch)
treede16cc13ef3a2b574f1e924736db0383f15ef28d /sphinx/directives/code.py
parent31f26a0bbf5e4e53b340e10464fc7c4cca96f12a (diff)
parentd78306c7f9c97d24648de2650a7bb99288da02f4 (diff)
downloadsphinx-git-c05c1320fae002384f9e53b9858137e14e3bf456.tar.gz
Merge pull request #8174 from tk0miya/8163_update_warning
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: