diff options
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 727b009c..c3b15738 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -305,31 +305,13 @@ open class HtmlRenderer( ol { buildListItems(node.children, pageContext, sourceSetRestriction) } } node.hasStyle(ListStyle.DescriptionList) -> { - dl { buildListItems(node.children, pageContext, sourceSetRestriction) } + dl { node.children.forEach { it.build(this, pageContext, sourceSetRestriction) } } } else -> { ul { buildListItems(node.children, pageContext, sourceSetRestriction) } } } - open fun DL.buildListItems( - items: List<ContentNode>, - pageContext: ContentPage, - sourceSetRestriction: Set<DisplaySourceSet>? = null - ) { - items.forEach { - when { - it.hasStyle(ListStyle.DescriptionTerm) -> dt { - it.build(this@buildListItems, pageContext, sourceSetRestriction) - } - it.hasStyle(ListStyle.DescriptionDetails) -> dd { - it.build(this@buildListItems, pageContext, sourceSetRestriction) - } - else -> it.build(this, pageContext, sourceSetRestriction) - } - } - } - open fun OL.buildListItems( items: List<ContentNode>, pageContext: ContentPage, |