X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/6c3ce53b60b68ca2b532935aeee89729f0bd9fd9..64aae0e57d7098bcb9b2cde1aa6aff3b3fd0fc0f:/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