aboutsummaryrefslogtreecommitdiff
path: root/src/Formats
diff options
context:
space:
mode:
authorkisenka <qtuzov@gmail.com>2014-10-10 20:33:05 +0400
committerkisenka <qtuzov@gmail.com>2014-10-10 20:33:05 +0400
commit8fbeb618bf342dff9e7ba2502bbc07ed50b9806b (patch)
tree81fb4ebacb9d327cc63d5371fa1a660fbd9877d5 /src/Formats
parentd3421d01f7fa9b3385b516eae5ae3895a73618de (diff)
downloaddokka-8fbeb618bf342dff9e7ba2502bbc07ed50b9806b.tar.gz
dokka-8fbeb618bf342dff9e7ba2502bbc07ed50b9806b.tar.bz2
dokka-8fbeb618bf342dff9e7ba2502bbc07ed50b9806b.zip
Fix code block formating in Markdown formatter
Diffstat (limited to 'src/Formats')
-rw-r--r--src/Formats/MarkdownFormatService.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Formats/MarkdownFormatService.kt b/src/Formats/MarkdownFormatService.kt
index 07a6d1f7..a835a673 100644
--- a/src/Formats/MarkdownFormatService.kt
+++ b/src/Formats/MarkdownFormatService.kt
@@ -70,9 +70,11 @@ public open class MarkdownFormatService(locationService: LocationService,
}
override public fun appendBlockCode(to: StringBuilder, line: String) {
- appendLine(to, "```")
+ appendLine(to)
+ to.appendln("```")
to.appendln(line)
- appendLine(to, "```")
+ to.appendln("```")
+ appendLine(to)
}
override fun appendTable(to: StringBuilder, body: () -> Unit) {