aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-03-31 21:04:27 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-03-31 21:04:27 +0200
commit792ae5c4099c7a37815888cd1313404375453eea (patch)
treee548045fd0095415f3d530149ca0385bd9831aa0 /core/src/test/kotlin
parent07a6e686db79bf7279381bccad79a0d4842f95c2 (diff)
downloaddokka-792ae5c4099c7a37815888cd1313404375453eea.tar.gz
dokka-792ae5c4099c7a37815888cd1313404375453eea.tar.bz2
dokka-792ae5c4099c7a37815888cd1313404375453eea.zip
Don't lose line breaks in code blocks. Resolves #54
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index 15be6c77..508790b1 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -246,6 +246,10 @@ class MarkdownFormatTest {
verifyMarkdownNode("jdkLinks", withKotlinRuntime = true)
}
+ @Test fun codeBlock() {
+ verifyMarkdownNode("codeBlock")
+ }
+
private fun verifyMarkdownPackage(fileName: String, withKotlinRuntime: Boolean = false) {
verifyOutput("testdata/format/$fileName.kt", ".package.md", withKotlinRuntime = withKotlinRuntime) { model, output ->
markdownService.appendNodes(tempLocation, output, model.members)