From 21573971ef5bd2ae37d4643d3d4dbf433cdcbbca Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Wed, 6 Nov 2019 11:53:35 +0100 Subject: A E S T H E T I C S --- core/src/main/kotlin/renderers/HtmlRenderer.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/src/main/kotlin/renderers') diff --git a/core/src/main/kotlin/renderers/HtmlRenderer.kt b/core/src/main/kotlin/renderers/HtmlRenderer.kt index bf4090f4..c8d2f619 100644 --- a/core/src/main/kotlin/renderers/HtmlRenderer.kt +++ b/core/src/main/kotlin/renderers/HtmlRenderer.kt @@ -30,13 +30,11 @@ open class HtmlRenderer(fileWriter: FileWriter, locationProvider: LocationProvid return buildNavigationWithContext(page, page) } - override fun buildGroup(children: List, pageContext: PageNode): String = - children.find { it is ContentLink }?.build(pageContext) + "\n" + - "" + children.filterNot { it is ContentLink }.joinToString("\n") { it.build(pageContext) } + override fun buildGroup(children: List, pageContext: PageNode): String = children.joinToString("\n\n") { it.build(pageContext) } override fun buildBlock(name: String, content: List, pageContext: PageNode): String = buildHeader(3, name) + "\n\n\n\n\n\n
\n" + - content.joinToString("
") { "(" + it.dci.platformDataList.map {it.platformName}.joinToString() + ") " + it.build(pageContext) } + "
" + content.joinToString("\n\n\n") { "(" + it.dci.platformDataList.map { it.platformName }.joinToString() + ") " + it.build(pageContext) } + "\n" override fun renderPage(page: PageNode) { val pageText = buildStartHtml(page) + buildPageContent(page) + buildEndHtml() -- cgit