From e1587e3e29d834322ffc0ba88583a1d3d4296e5f Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Sat, 17 Jan 2015 16:40:14 +0100 Subject: [PATCH] class after ; requires an additional newline --- src/dfmt.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dfmt.d b/src/dfmt.d index 7bd6b93..14a55d9 100644 --- a/src/dfmt.d +++ b/src/dfmt.d @@ -341,6 +341,8 @@ private: writeToken(); if (current.type != tok!"comment") newline(); + if (peekImplementation(tok!"class",0)) + newline(); break; case tok!"{": writeBraces();