X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/337a4199f90ca48a19cf26511e0cec330b13bd4e..29e97d1d4a7717f1bd0ca35cacf2f2ce6d815b0c:/black.py?ds=inline diff --git a/black.py b/black.py index 15a7547..a03b9aa 100644 --- a/black.py +++ b/black.py @@ -1044,6 +1044,10 @@ class EmptyLineTracker: # Don't insert empty lines between decorators. return 0, 0 + if is_decorator and self.previous_line and self.previous_line.is_comment: + # Don't insert empty lines between decorator comments. + return 0, 0 + newlines = 2 if current_line.depth: newlines -= 1