From 8fbeb618bf342dff9e7ba2502bbc07ed50b9806b Mon Sep 17 00:00:00 2001 From: kisenka Date: Fri, 10 Oct 2014 20:33:05 +0400 Subject: Fix code block formating in Markdown formatter --- src/Formats/MarkdownFormatService.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Formats') 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) { -- cgit