aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/KotlinWebsiteFormatService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-10-21 18:26:10 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-10-21 18:26:10 +0200
commitb8f2435e2db50c2053a9d880ab9573cb0bc2630e (patch)
tree55274c5b5e67191e32983559ffb8ea15c0c4df86 /src/Formats/KotlinWebsiteFormatService.kt
parent8827d30048b9c50f47e62f69baf774363fdebc5d (diff)
downloaddokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.gz
dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.bz2
dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.zip
M15 code cleanup
Diffstat (limited to 'src/Formats/KotlinWebsiteFormatService.kt')
-rw-r--r--src/Formats/KotlinWebsiteFormatService.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Formats/KotlinWebsiteFormatService.kt b/src/Formats/KotlinWebsiteFormatService.kt
index 21fc9dae..3a9fc6cd 100644
--- a/src/Formats/KotlinWebsiteFormatService.kt
+++ b/src/Formats/KotlinWebsiteFormatService.kt
@@ -20,14 +20,14 @@ public class KotlinWebsiteFormatService(locationService: LocationService,
return ""
}
- override public fun formatCode(code: String): String = if (code.length() > 0) "<code>$code</code>" else ""
+ override public fun formatCode(code: String): String = if (code.length > 0) "<code>$code</code>" else ""
override fun formatStrikethrough(text: String): String = "<s>$text</s>"
override fun appendAsSignature(to: StringBuilder, block: () -> Unit) {
- val oldLength = to.length()
+ val oldLength = to.length
block()
- if (to.length() > oldLength) {
+ if (to.length > oldLength) {
to.append("<br/>") // since we've used HTML to format the signature, add an HTML line break following it
}
}