X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/6c3ce53b60b68ca2b532935aeee89729f0bd9fd9..68c71b621f5c80c243ba8a177c5a2059b3ace1d9:/black.py diff --git a/black.py b/black.py index 89155f6..f305e8d 100644 --- a/black.py +++ b/black.py @@ -1115,7 +1115,7 @@ def generate_comments(leaf: Leaf) -> Iterator[Leaf]: if content and (content[0] not in {' ', '!', '#'}): content = ' ' + content is_standalone_comment = ( - '\n' in before_comment or '\n' in content or leaf.type == token.DEDENT + '\n' in before_comment or '\n' in content or leaf.type == token.ENDMARKER ) if not is_standalone_comment: # simple trailing comment