diff options
-rw-r--r-- | core/src/main/kotlin/Formats/MarkdownFormatService.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/MarkdownFormatService.kt b/core/src/main/kotlin/Formats/MarkdownFormatService.kt index 2e3c9f6d..794deedd 100644 --- a/core/src/main/kotlin/Formats/MarkdownFormatService.kt +++ b/core/src/main/kotlin/Formats/MarkdownFormatService.kt @@ -8,6 +8,8 @@ enum class ListKind { Unordered } +private val TWO_LINE_BREAKS = System.lineSeparator() + System.lineSeparator() + open class MarkdownOutputBuilder(to: StringBuilder, location: Location, locationService: LocationService, @@ -54,7 +56,7 @@ open class MarkdownOutputBuilder(to: StringBuilder, } override fun ensureParagraph() { - if (!to.endsWith("\n\n")) { + if (!to.endsWith(TWO_LINE_BREAKS)) { if (!to.endsWith('\n')) { appendNewline() } |