Commit 502647f7 authored by Krzysztof Gogolewski's avatar Krzysztof Gogolewski Committed by Marge Bot
Browse files

Fix "ndecreasingIndentation" in manual (#18116)

parent 01f7052c
......@@ -255,14 +255,16 @@ class LanguageExtension(GenericFlag):
# Invert the flag
@staticmethod
def _noname(name):
if name[:2] == "No":
# We check isupper() so that NondecreasingIndentation
# is not counted as "No-decreasingIndentation"
if name[:2] == "No" and name[2].isupper():
return name[2:]
else:
return "No%s" % name
@staticmethod
def _onname(name):
if name[:2] == "No":
if name[:2] == "No" and name[2].isupper():
return name[2:]
else:
return name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment