From b0e75b017ba3569e4e0ff2cba8cbd29f03188409 Mon Sep 17 00:00:00 2001 From: Guillaume R Date: Tue, 23 Jul 2019 18:00:09 +0200 Subject: Add a newline before closing the wrapped code (#545) (#660) --- main/src/main/MainRunner.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/src/main/MainRunner.scala b/main/src/main/MainRunner.scala index 354b6173..7c9d944b 100644 --- a/main/src/main/MainRunner.scala +++ b/main/src/main/MainRunner.scala @@ -11,7 +11,6 @@ import mill.util.PrintLogger import scala.annotation.tailrec import ammonite.runtime.ImportHook - /** * Customized version of [[ammonite.MainRunner]], allowing us to run Mill * `build.sc` scripts with mill-specific tweaks such as a custom @@ -63,7 +62,6 @@ class MainRunner(val config: ammonite.main.Cli.Config, } } - override def runScript(scriptPath: os.Path, scriptArgs: List[String]) = watchLoop2( isRepl = false, @@ -169,7 +167,7 @@ class MainRunner(val config: ammonite.main.Cli.Config, | |sealed trait $wrapName extends mill.main.MainModule{ |""".stripMargin - val bottom = "}" + val bottom = "\n}" (top, bottom, 1) } -- cgit v1.2.3