aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/renderers
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-11-06 11:53:35 +0100
committerKamil Doległo <kamilok1965@interia.pl>2019-11-06 11:53:58 +0100
commit21573971ef5bd2ae37d4643d3d4dbf433cdcbbca (patch)
tree2aaf64567872974d233dda6bb893d341ab9f96ff /core/src/main/kotlin/renderers
parentcb4209bf550eb1dbf1253d48a1be4486a30c66b3 (diff)
downloaddokka-21573971ef5bd2ae37d4643d3d4dbf433cdcbbca.tar.gz
dokka-21573971ef5bd2ae37d4643d3d4dbf433cdcbbca.tar.bz2
dokka-21573971ef5bd2ae37d4643d3d4dbf433cdcbbca.zip
A E S T H E T I C S
Diffstat (limited to 'core/src/main/kotlin/renderers')
-rw-r--r--core/src/main/kotlin/renderers/HtmlRenderer.kt6
1 files changed, 2 insertions, 4 deletions
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<ContentNode>, pageContext: PageNode): String =
- children.find { it is ContentLink }?.build(pageContext) + "</td>\n" +
- "<td>" + children.filterNot { it is ContentLink }.joinToString("\n") { it.build(pageContext) }
+ override fun buildGroup(children: List<ContentNode>, pageContext: PageNode): String = children.joinToString("</td>\n<td>\n") { it.build(pageContext) }
override fun buildBlock(name: String, content: List<ContentNode>, pageContext: PageNode): String =
buildHeader(3, name) + "<table>\n<tr>\n<td>\n" +
- content.joinToString("</td>\n</tr>\n<tr>\n<td>") { "(" + it.dci.platformDataList.map {it.platformName}.joinToString() + ") " + it.build(pageContext) } + "</td></tr>\n</table>"
+ content.joinToString("</td>\n</tr>\n<tr>\n<td>") { "(" + it.dci.platformDataList.map { it.platformName }.joinToString() + ") " + it.build(pageContext) } + "</td></tr>\n</table>"
override fun renderPage(page: PageNode) {
val pageText = buildStartHtml(page) + buildPageContent(page) + buildEndHtml()