Commit bf857d07 authored by Michal Čihař's avatar Michal Čihař

This is more correct form, but let accept both

parent 566f2dd0
......@@ -111,7 +111,7 @@ def check_end_colon(source, target, flags, language):
if len(target) == 0:
return False
if source[-1] == ':':
if target[-3:] != ' : ':
if target[-3:] not in [' : ', ' : ']:
return True
return False
return check_chars(source, target, -1, [u':', u':'])
......
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