X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/cf6f577928f5a1f4e98b02b8e723311cae830305..c98a6f134f4b2b831e7e659de0c217c118270a61:/black.py?ds=sidebyside diff --git a/black.py b/black.py index 7ca6bc6..f03c4f1 100644 --- a/black.py +++ b/black.py @@ -1183,7 +1183,7 @@ def make_comment(content: str) -> str: if content[0] == '#': content = content[1:] - if content and content[0] not in {' ', '!', '#'}: + if content and content[0] not in ' !:#': content = ' ' + content return '#' + content