diff options
Diffstat (limited to 'plugins/base/src')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 2 | ||||
-rw-r--r-- | plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 91e49a13..c5b0e511 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -278,6 +278,8 @@ open class HtmlRenderer( distinctInstances.firstOrNull()?.after ?: if (i != distinct.size - 1) ContentBreakLine(it.key) else null ) + if(node.dci.kind == ContentKind.Main && i != distinct.size - 1) + contentOfSourceSet.add(ContentBreakLine(it.key)) } contentOfSourceSet } diff --git a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt index 6a504634..f9dd92da 100644 --- a/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt +++ b/plugins/base/src/test/kotlin/renderers/html/DivergentTest.kt @@ -5,6 +5,7 @@ import org.jetbrains.dokka.links.DRI import org.jetbrains.dokka.pages.ContentDivergentGroup import org.junit.jupiter.api.Test import renderers.testPage +import utils.Br import utils.match import kotlin.test.assertEquals @@ -184,7 +185,7 @@ class DivergentTest : HtmlRenderingOnlyTestBase() { HtmlRenderer(context).render(page) val content = renderedContent - content.select("[data-togglable=DEFAULT/native]").single().match("aa+ee+") + content.select("[data-togglable=DEFAULT/native]").single().match("aa+", Br, "ee+") content.select("[data-togglable=DEFAULT/js]").single().match("bdbd+") content.select("[data-togglable=DEFAULT/jvm]").single().match("c") } @@ -306,6 +307,6 @@ class DivergentTest : HtmlRenderingOnlyTestBase() { } HtmlRenderer(context).render(page) - renderedContent.select("[data-togglable=DEFAULT/native]").single().match("a-aab+b-bab+") + renderedContent.select("[data-togglable=DEFAULT/native]").single().match("a-aab+", Br, "b-bab+") } } |