diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-21 18:26:10 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-21 18:26:10 +0200 |
commit | b8f2435e2db50c2053a9d880ab9573cb0bc2630e (patch) | |
tree | 55274c5b5e67191e32983559ffb8ea15c0c4df86 /src/Formats/HtmlFormatService.kt | |
parent | 8827d30048b9c50f47e62f69baf774363fdebc5d (diff) | |
download | dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.gz dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.bz2 dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.zip |
M15 code cleanup
Diffstat (limited to 'src/Formats/HtmlFormatService.kt')
-rw-r--r-- | src/Formats/HtmlFormatService.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Formats/HtmlFormatService.kt b/src/Formats/HtmlFormatService.kt index 78d3cff2..74b10255 100644 --- a/src/Formats/HtmlFormatService.kt +++ b/src/Formats/HtmlFormatService.kt @@ -112,13 +112,13 @@ public open class HtmlFormatService(locationService: LocationService, override fun appendNodes(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) { templateService.appendHeader(to, getPageTitle(nodes)) - super<StructuredFormatService>.appendNodes(location, to, nodes) + super.appendNodes(location, to, nodes) templateService.appendFooter(to) } override fun appendOutline(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) { templateService.appendHeader(to, "Module Contents") - super<OutlineFormatService>.appendOutline(location, to, nodes) + super.appendOutline(location, to, nodes) templateService.appendFooter(to) } @@ -144,16 +144,16 @@ public open class HtmlFormatService(locationService: LocationService, fun getPageTitle(nodes: Iterable<DocumentationNode>): String? { val breakdownByLocation = nodes.groupBy { node -> formatPageTitle(node) } - return breakdownByLocation.keySet().singleOrNull() + return breakdownByLocation.keys.singleOrNull() } fun formatPageTitle(node: DocumentationNode): String { val path = node.path - if (path.size() == 1) { + if (path.size == 1) { return path.first().name } - val qualifiedName = path.drop(1).map { it.name }.filter { it.length() > 0 }.join(".") - if (qualifiedName.length() == 0 && path.size() == 2) { + val qualifiedName = path.drop(1).map { it.name }.filter { it.length > 0 }.joinToString(".") + if (qualifiedName.length == 0 && path.size == 2) { return path.first().name + " / root package" } return path.first().name + " / " + qualifiedName |