Skip to content

Commit 3385530

Browse files
committed
Add missing line break
1 parent dbd7777 commit 3385530

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
538538
body match {
539539
case Term.Block(stats, expr) =>
540540
printTrees(stats, lineBreak())
541+
if (stats.nonEmpty)
542+
this += lineBreak()
541543
printTree(expr)
542544
case body =>
543545
printTree(body)

0 commit comments

Comments
 (0)