From d9bfa029b0ecf300ae47cf1033db2d5cb323d705 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 19 Feb 2015 18:59:00 +0100 Subject: remove dependency of Location on a File; use more meaningful locations in tests --- src/Formats/HtmlFormatService.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Formats/HtmlFormatService.kt') diff --git a/src/Formats/HtmlFormatService.kt b/src/Formats/HtmlFormatService.kt index 3415bfd7..8442c66f 100644 --- a/src/Formats/HtmlFormatService.kt +++ b/src/Formats/HtmlFormatService.kt @@ -82,10 +82,6 @@ public open class HtmlFormatService(locationService: LocationService, to.appendln("") } - override fun formatLink(text: String, location: Location): String { - return "${text}" - } - override fun formatLink(text: String, href: String): String { return "${text}" } @@ -139,7 +135,7 @@ public open class HtmlFormatService(locationService: LocationService, val link = ContentNodeLink(node) link.append(languageService.render(node, LanguageService.RenderMode.FULL)) val signature = formatText(location, link) - to.appendln("${formatLink(signature, location)}
") + to.appendln("${signature}
") } override fun appendOutlineLevel(to: StringBuilder, body: () -> Unit) { -- cgit