diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 18:54:06 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 18:54:06 +0100 |
commit | 7fbff24a81a7bcc453e1c4e30acdcf7b38c68265 (patch) | |
tree | 4cea4817061c5492f2fd3552649a1768f186255f /src/Formats/MarkdownFormatService.kt | |
parent | a03a2cc3df9afe714e2a490d86a9110faaecfa24 (diff) | |
download | dokka-7fbff24a81a7bcc453e1c4e30acdcf7b38c68265.tar.gz dokka-7fbff24a81a7bcc453e1c4e30acdcf7b38c68265.tar.bz2 dokka-7fbff24a81a7bcc453e1c4e30acdcf7b38c68265.zip |
use JUnit for compares; avoid generating trailing whitespace in markdown
Diffstat (limited to 'src/Formats/MarkdownFormatService.kt')
-rw-r--r-- | src/Formats/MarkdownFormatService.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Formats/MarkdownFormatService.kt b/src/Formats/MarkdownFormatService.kt index 96f64eec..38fadf7a 100644 --- a/src/Formats/MarkdownFormatService.kt +++ b/src/Formats/MarkdownFormatService.kt @@ -106,14 +106,15 @@ public open class MarkdownFormatService(locationService: LocationService, } override fun appendTableRow(to: StringBuilder, body: () -> Unit) { - to.append("| ") + to.append("|") body() to.appendln() } override fun appendTableCell(to: StringBuilder, body: () -> Unit) { + to.append(" ") body() - to.append(" | ") + to.append(" |") } var outlineLevel = 0 |