diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-06 11:11:23 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-06 11:11:56 +0100 |
commit | f245defee2dcb85711ea2fbda8861314a17f14d7 (patch) | |
tree | 2b8d3eccf5c691c3b455fc10d57968669a214555 /core/src/main/kotlin/renderers/HtmlRenderer.kt | |
parent | 50d1bf3e2f8aa8340e7ce797eb55aba500b64be3 (diff) | |
download | dokka-f245defee2dcb85711ea2fbda8861314a17f14d7.tar.gz dokka-f245defee2dcb85711ea2fbda8861314a17f14d7.tar.bz2 dokka-f245defee2dcb85711ea2fbda8861314a17f14d7.zip |
Fix merger, add platforms
Diffstat (limited to 'core/src/main/kotlin/renderers/HtmlRenderer.kt')
-rw-r--r-- | core/src/main/kotlin/renderers/HtmlRenderer.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/kotlin/renderers/HtmlRenderer.kt b/core/src/main/kotlin/renderers/HtmlRenderer.kt index 065b669a..bf4090f4 100644 --- a/core/src/main/kotlin/renderers/HtmlRenderer.kt +++ b/core/src/main/kotlin/renderers/HtmlRenderer.kt @@ -35,7 +35,8 @@ open class HtmlRenderer(fileWriter: FileWriter, locationProvider: LocationProvid "<td>" + children.filterNot { it is ContentLink }.joinToString("\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.build(pageContext) } + "</td></tr>\n</table>" + 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>" override fun renderPage(page: PageNode) { val pageText = buildStartHtml(page) + buildPageContent(page) + buildEndHtml() |