diff options
author | Guillaume R <theelectronwill@gmail.com> | 2019-07-23 18:00:09 +0200 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2019-07-24 00:00:09 +0800 |
commit | b0e75b017ba3569e4e0ff2cba8cbd29f03188409 (patch) | |
tree | 5eaef1e50c9357872be7ed6f06c314c966085931 /main | |
parent | 6eb1d8bb374907875ef534a82a33dfb6854f1cf8 (diff) | |
download | mill-b0e75b017ba3569e4e0ff2cba8cbd29f03188409.tar.gz mill-b0e75b017ba3569e4e0ff2cba8cbd29f03188409.tar.bz2 mill-b0e75b017ba3569e4e0ff2cba8cbd29f03188409.zip |
Add a newline before closing the wrapped code (#545) (#660)
Diffstat (limited to 'main')
-rw-r--r-- | main/src/main/MainRunner.scala | 4 |
1 files changed, 1 insertions, 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) } |