diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-26 21:04:33 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-26 21:04:33 +0400 |
commit | 2e3dc238275073a5c7a2e5a14c79337d12492dad (patch) | |
tree | 53f54e03f0564500e72f7dede11baf7ae6871bb1 /test/src/markdown/MarkdownTestRunner.kt | |
parent | 7b2e274afa45560796160308ba286651651d7099 (diff) | |
download | dokka-2e3dc238275073a5c7a2e5a14c79337d12492dad.tar.gz dokka-2e3dc238275073a5c7a2e5a14c79337d12492dad.tar.bz2 dokka-2e3dc238275073a5c7a2e5a14c79337d12492dad.zip |
Continue markdown processing
Diffstat (limited to 'test/src/markdown/MarkdownTestRunner.kt')
-rw-r--r-- | test/src/markdown/MarkdownTestRunner.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/src/markdown/MarkdownTestRunner.kt b/test/src/markdown/MarkdownTestRunner.kt index bf1d9516..4ba9675e 100644 --- a/test/src/markdown/MarkdownTestRunner.kt +++ b/test/src/markdown/MarkdownTestRunner.kt @@ -84,7 +84,10 @@ public class MarkdownTestRunner(specificationClass: Class<MarkdownSpecification> private fun createTests(parent: MarkdownTestSection, lines: List<String>): Int { val testMark = lines.takeWhile { it.trim() != "." } val testHtml = lines.drop(testMark.size).drop(1).takeWhile { it.trim() != "." } - parent.children.add(MarkdownTestCase(spec, testMark.join("\n", postfix = "\n"), testHtml.join("\n", postfix = "\n"))) + val markdown = testMark.join("\n", postfix = "\n", prefix = "\n") + val html = testHtml.join("\n", postfix = "\n") + val markdownTestCase = MarkdownTestCase(spec, markdown, html) + parent.children.add(markdownTestCase) return testMark.size + testHtml.size + 3 } |