Skip to content

Commit e57ab2b

Browse files
authored
fix: insert empty lines for ignored code (#1033)
1 parent bb61763 commit e57ab2b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

effekt/shared/src/main/scala/effekt/util/Source.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ case class MarkdownSource(source: Source) extends Source {
7171
if (!code.isEmpty) lines ++= code
7272
lines += ""
7373
// closing fence of ```effekt:ignore
74-
case Ignore =>
75-
lines += ""
7674
// closing fence of ```scala or other languages
77-
// same semantic as effekt:ignore
78-
case Other =>
75+
case _ =>
76+
lines ++= code.map { _ => "" }
7977
lines += ""
8078
}
8179
fenceType = None

0 commit comments

Comments
 (0)