From 05dcb36c2f46bda9a34a8cd4df8bbfd4d188c952 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Tue, 31 Mar 2020 10:03:57 +0200 Subject: Make renderer respect platform restriction for table rows --- plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/base/src/main/kotlin') diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 19b0f26f..2214cda6 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -143,7 +143,7 @@ open class HtmlRenderer( pageContext: ContentPage, platformRestriction: PlatformData? ) { - node.children.forEach { + node.children.filter { platformRestriction == null || platformRestriction in it.platforms }.forEach { tr { it.children.forEach { td { -- cgit