diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-07-09 10:58:25 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-07-09 10:58:25 +0200 |
commit | b776892e4f6568db5a44bbc76ff77dd6d1de5ca1 (patch) | |
tree | d7bbd9e49b2c15f4f030085657e0ea7315e672f1 /core/src/main | |
parent | 045d36b1627a446f5fad85cda609c46839f42aaa (diff) | |
download | dokka-b776892e4f6568db5a44bbc76ff77dd6d1de5ca1.tar.gz dokka-b776892e4f6568db5a44bbc76ff77dd6d1de5ca1.tar.bz2 dokka-b776892e4f6568db5a44bbc76ff77dd6d1de5ca1.zip |
fix tests on Windows
Diffstat (limited to 'core/src/main')
-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() } |