aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-26 13:03:22 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-26 13:03:22 +0100
commit5ae95880c4bc5109dcb27ea482b63352433ec167 (patch)
tree5472fe6aad5a4422bbcc2dcaac4a29b0afc8b954
parent9849287541fc23ef130729bd5e1e908a47b97ac3 (diff)
downloaddokka-5ae95880c4bc5109dcb27ea482b63352433ec167.tar.gz
dokka-5ae95880c4bc5109dcb27ea482b63352433ec167.tar.bz2
dokka-5ae95880c4bc5109dcb27ea482b63352433ec167.zip
fix formatting of code blocks on kotlin website
-rw-r--r--src/Formats/KotlinWebsiteFormatService.kt10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Formats/KotlinWebsiteFormatService.kt b/src/Formats/KotlinWebsiteFormatService.kt
index 3ded2d6d..a5e9c022 100644
--- a/src/Formats/KotlinWebsiteFormatService.kt
+++ b/src/Formats/KotlinWebsiteFormatService.kt
@@ -20,16 +20,8 @@ public class KotlinWebsiteFormatService(locationService: LocationService,
return ""
}
- /*
- TODO this should be a LocationService
- override fun formatLink(text: String, location: Location): String {
- val href = location.path.replace("\\", "/")
- .replaceAfterLast(".", "html")
- .replace("/index.html", "/");
- return "<a href=\"${href}\">${text}</a>"
- }
- */
+ override public fun formatCode(code: String): String = "<code>$code</code>"
override fun formatLink(text: String, href: String): String {
return "<a href=\"${href}\">${text}</a>"