From 2ab77e0527ccf22ec0169ed41fed14b7d724b429 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Thu, 6 Nov 2025 20:23:55 +0800 Subject: [PATCH 1/2] Remove pipes from multi-line REPL prompts (#24307) This makes it easier to copy-paste-autoformat REPL snippets when transferring them into your IDE for usage in Scala files --- compiler/src/dotty/tools/repl/JLineTerminal.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/repl/JLineTerminal.scala b/compiler/src/dotty/tools/repl/JLineTerminal.scala index e9929d388e47..929236b414c1 100644 --- a/compiler/src/dotty/tools/repl/JLineTerminal.scala +++ b/compiler/src/dotty/tools/repl/JLineTerminal.scala @@ -37,7 +37,7 @@ class JLineTerminal extends java.io.Closeable { else str protected def promptStr = "scala" private def prompt(using Context) = blue(s"\n$promptStr> ") - private def newLinePrompt(using Context) = blue(" | ") + private def newLinePrompt(using Context) = " " /** Blockingly read line from `System.in` * From 066535331f94d4b491f171fa45e7d6678391be97 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Tue, 18 Nov 2025 10:47:39 +0100 Subject: [PATCH 2/2] Remove pipes from multi-line REPL prompts (#24307) This makes it easier to copy-paste-autoformat REPL snippets when transferring them into your IDE for usage in Scala files [Cherry-picked 88e43fa960674eee2315f787946ca1f0fa46f659][modified]