diff --git a/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt b/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt index fb3cbcea808..b8904966256 100644 --- a/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt +++ b/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt @@ -160,7 +160,7 @@ object KDocRenderer { sb.trimEnd() sb.append("
") processChildren() - sb.append("") + sb.append("") } MarkdownElementTypes.SHORT_REFERENCE_LINK, MarkdownElementTypes.FULL_REFERENCE_LINK -> { diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithCodeBlock.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithCodeBlock.kt index b99d603dcd8..2a22c4eb761 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithCodeBlock.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithCodeBlock.kt @@ -7,6 +7,11 @@ * * Third line * ``` + * + * Text between code blocks. + * ``` + * ``` + * Text after code block. */ fun testMethod() { @@ -25,4 +30,6 @@ fun test() { //INFO: Second line //INFO: //INFO: Third line -//INFO:+//INFO:Text between code blocks.
+//INFO:+//INFO:Text after code block.