From f37f2b462223fe818fccd21e6465de139445dd73 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Thu, 11 Jun 2020 03:07:17 -0700 Subject: [PATCH] Fix a bug in the newline logic --- src/dfmt/formatter.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dfmt/formatter.d b/src/dfmt/formatter.d index c922c5f..86c3725 100644 --- a/src/dfmt/formatter.d +++ b/src/dfmt/formatter.d @@ -480,6 +480,8 @@ private: { if (config.dfmt_keep_line_breaks != OptionalBoolean.t) newline(); + else if (!currentIs(tok!".")) + newline(); justAddedExtraNewline = j; } else if (hasCurrent)