diff options
author | Filip ZybaĆa <48246851+pikinier20@users.noreply.github.com> | 2020-10-16 10:45:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 10:45:40 +0200 |
commit | 991913dc02f342615f33511f96891e5db7487cd4 (patch) | |
tree | d5d734e9b89ef9d0ea25ca1ad9996ae613e1a89a /plugins | |
parent | c5a31b47ef182e4de3ec58d5ce5624e65fe11015 (diff) | |
download | dokka-991913dc02f342615f33511f96891e5db7487cd4.tar.gz dokka-991913dc02f342615f33511f96891e5db7487cd4.tar.bz2 dokka-991913dc02f342615f33511f96891e5db7487cd4.zip |
Fix rendering of comment tables (#1560)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 4 |
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 { |