X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/b40b01ffe3dbf1fa989acd6050ef5e61c085b5da..3bb92146f59804a6ead47d5f2d0fdc47daa6b698:/src/black/lines.py diff --git a/src/black/lines.py b/src/black/lines.py index 71b657a..14754d7 100644 --- a/src/black/lines.py +++ b/src/black/lines.py @@ -550,6 +550,15 @@ class EmptyLineTracker: if self.previous_line is None else before - previous_after ) + if ( + Preview.module_docstring_newlines in current_line.mode + and self.previous_block + and self.previous_block.previous_block is None + and len(self.previous_block.original_line.leaves) == 1 + and self.previous_block.original_line.is_triple_quoted_string + ): + before = 1 + block = LinesBlock( mode=self.mode, previous_block=self.previous_block,