Trim last newline in scratch output with REPL
^KT-24362 Fixed
This commit is contained in:
@@ -132,7 +132,7 @@ class KtScratchReplExecutor(file: ScratchFile) : ScratchExecutor(file) {
|
|||||||
|
|
||||||
val root = output.firstChild as Element
|
val root = output.firstChild as Element
|
||||||
val outputType = root.getAttribute("type")
|
val outputType = root.getAttribute("type")
|
||||||
val content = StringUtil.replace(root.textContent, XML_REPLACEMENTS, SOURCE_CHARS)
|
val content = StringUtil.replace(root.textContent, XML_REPLACEMENTS, SOURCE_CHARS).trim('\n')
|
||||||
|
|
||||||
LOG.printDebugMessage("REPL output: $outputType $content")
|
LOG.printDebugMessage("REPL output: $outputType $content")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user