diff options
author | kisenka <qtuzov@gmail.com> | 2014-10-10 20:33:05 +0400 |
---|---|---|
committer | kisenka <qtuzov@gmail.com> | 2014-10-10 20:33:05 +0400 |
commit | 8fbeb618bf342dff9e7ba2502bbc07ed50b9806b (patch) | |
tree | 81fb4ebacb9d327cc63d5371fa1a660fbd9877d5 /src/Formats | |
parent | d3421d01f7fa9b3385b516eae5ae3895a73618de (diff) | |
download | dokka-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.kt | 6 |
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) { |