X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/02f81c6995db4688baedd3c63e4b9821c090f09c..3decbd6db9f120e8d7c8fa86b5b2f64f7861da0c:/src/black/lines.py diff --git a/src/black/lines.py b/src/black/lines.py index 9d33bfa..daf0444 100644 --- a/src/black/lines.py +++ b/src/black/lines.py @@ -634,6 +634,8 @@ class EmptyLineTracker: and self.previous_line.is_class and current_line.is_triple_quoted_string ): + if Preview.no_blank_line_before_class_docstring in current_line.mode: + return 0, 1 return before, 1 if self.previous_line and self.previous_line.opens_block: