aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/KotlinWebsiteFormatService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-26 13:55:37 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-26 13:55:37 +0100
commitf90ee50fcace48d71b132d6ec7f305138fe01e44 (patch)
tree1fd50315847e97ca47edb59aa2b3ddb5930ab680 /src/Formats/KotlinWebsiteFormatService.kt
parent7003ad81924859cbe6fd5974a95295f1f8588290 (diff)
downloaddokka-f90ee50fcace48d71b132d6ec7f305138fe01e44.tar.gz
dokka-f90ee50fcace48d71b132d6ec7f305138fe01e44.tar.bz2
dokka-f90ee50fcace48d71b132d6ec7f305138fe01e44.zip
fix formatting of signatures in Kotlin web site
Diffstat (limited to 'src/Formats/KotlinWebsiteFormatService.kt')
-rw-r--r--src/Formats/KotlinWebsiteFormatService.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Formats/KotlinWebsiteFormatService.kt b/src/Formats/KotlinWebsiteFormatService.kt
index 3096c9de..dd33f5c4 100644
--- a/src/Formats/KotlinWebsiteFormatService.kt
+++ b/src/Formats/KotlinWebsiteFormatService.kt
@@ -20,11 +20,15 @@ public class KotlinWebsiteFormatService(locationService: LocationService,
return ""
}
-
override public fun formatCode(code: String): String = "<code>$code</code>"
override fun formatStrikethrough(text: String): String = "<s>$text</s>"
+ override fun appendAsSignature(to: StringBuilder, block: () -> Unit) {
+ block()
+ to.append("<br/>") // since we've used HTML to format the signature, add an HTML line break following it
+ }
+
override fun formatLink(text: String, href: String): String {
return "<a href=\"${href}\">${text}</a>"
}