aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Java/JavadocParser.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/Java/JavadocParser.kt')
-rw-r--r--core/src/main/kotlin/Java/JavadocParser.kt14
1 files changed, 9 insertions, 5 deletions
diff --git a/core/src/main/kotlin/Java/JavadocParser.kt b/core/src/main/kotlin/Java/JavadocParser.kt
index d6e46c50..3411b5c7 100644
--- a/core/src/main/kotlin/Java/JavadocParser.kt
+++ b/core/src/main/kotlin/Java/JavadocParser.kt
@@ -160,13 +160,17 @@ class JavadocParser(
return ContentText(node.text())
} else if (node is Element) {
val childBlock = createBlock(node)
- node.childNodes().forEach {
- val child = convertHtmlNode(it)
- if (child != null) {
- childBlock.append(child)
+ if (childBlock is ContentBlockCode) {
+ childBlock.append(ContentText(node.text()))
+ } else {
+ node.childNodes().forEach {
+ val child = convertHtmlNode(it)
+ if (child != null) {
+ childBlock.append(child)
+ }
}
+ return (childBlock)
}
- return (childBlock)
}
return null
}