aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-03-09 19:47:21 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-03-09 19:47:21 +0100
commit549791160cff5e02a69b632b366efcb71e3f5865 (patch)
treef451fcd732acde6d7a91e5567298424d981b514b
parent6f1a379aa2f494cb4e3e0d3a0dc6b5f8b625fa1a (diff)
downloaddokka-549791160cff5e02a69b632b366efcb71e3f5865.tar.gz
dokka-549791160cff5e02a69b632b366efcb71e3f5865.tar.bz2
dokka-549791160cff5e02a69b632b366efcb71e3f5865.zip
simplify a bit
-rw-r--r--src/Kotlin/ContentBuilder.kt9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt
index 0aa80df0..8e75e473 100644
--- a/src/Kotlin/ContentBuilder.kt
+++ b/src/Kotlin/ContentBuilder.kt
@@ -91,9 +91,6 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver
}
}
- MarkdownTokenTypes.TEXT ->
- parent.append(ContentText(node.text))
-
MarkdownTokenTypes.CODE -> {
val block = ContentBlockCode()
block.append(ContentText(node.text))
@@ -104,9 +101,9 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver
processChildren()
parent.append(nodeStack.pop())
}
- MarkdownTokenTypes.COLON -> {
- parent.append(ContentText(node.text))
- }
+
+ MarkdownTokenTypes.TEXT,
+ MarkdownTokenTypes.COLON,
MarkdownTokenTypes.DOUBLE_QUOTE,
MarkdownTokenTypes.LT,
MarkdownTokenTypes.GT,