aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/renderers
diff options
context:
space:
mode:
authorFilip ZybaƂa <48246851+pikinier20@users.noreply.github.com>2020-10-16 10:45:40 +0200
committerGitHub <noreply@github.com>2020-10-16 10:45:40 +0200
commit991913dc02f342615f33511f96891e5db7487cd4 (patch)
treed5d734e9b89ef9d0ea25ca1ad9996ae613e1a89a /plugins/base/src/main/kotlin/renderers
parentc5a31b47ef182e4de3ec58d5ce5624e65fe11015 (diff)
downloaddokka-991913dc02f342615f33511f96891e5db7487cd4.tar.gz
dokka-991913dc02f342615f33511f96891e5db7487cd4.tar.bz2
dokka-991913dc02f342615f33511f96891e5db7487cd4.zip
Fix rendering of comment tables (#1560)
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt4
1 files changed, 2 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 5ca168bf..f90a3ace 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -527,8 +527,8 @@ open class HtmlRenderer(
pageContext: ContentPage,
sourceSetRestriction: Set<DisplaySourceSet>?
) {
- when (node.dci.kind) {
- ContentKind.Comment -> buildDefaultTable(node, pageContext, sourceSetRestriction)
+ when {
+ node.style.contains(CommentTable) -> buildDefaultTable(node, pageContext, sourceSetRestriction)
else -> div(classes = "table") {
node.extra.extraHtmlAttributes().forEach { attributes[it.extraKey] = it.extraValue }
node.children.forEach {