X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/cf6f577928f5a1f4e98b02b8e723311cae830305..475179a53af1948ca726de1b11d4cdbe2aa90e58:/black.py?ds=inline 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