aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/MarkdownFormatService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-09 18:54:06 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-09 18:54:06 +0100
commit7fbff24a81a7bcc453e1c4e30acdcf7b38c68265 (patch)
tree4cea4817061c5492f2fd3552649a1768f186255f /src/Formats/MarkdownFormatService.kt
parenta03a2cc3df9afe714e2a490d86a9110faaecfa24 (diff)
downloaddokka-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.kt5
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