diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-19 18:59:00 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-19 18:59:00 +0100 |
commit | d9bfa029b0ecf300ae47cf1033db2d5cb323d705 (patch) | |
tree | ff8a9f7d4b0b1233d3d7b1e89a74047c64c8dbd7 /src/Formats/HtmlFormatService.kt | |
parent | 2822a3eee07a27495d5af4fc36304d483756d3a6 (diff) | |
download | dokka-d9bfa029b0ecf300ae47cf1033db2d5cb323d705.tar.gz dokka-d9bfa029b0ecf300ae47cf1033db2d5cb323d705.tar.bz2 dokka-d9bfa029b0ecf300ae47cf1033db2d5cb323d705.zip |
remove dependency of Location on a File; use more meaningful locations in tests
Diffstat (limited to 'src/Formats/HtmlFormatService.kt')
-rw-r--r-- | src/Formats/HtmlFormatService.kt | 6 |
1 files changed, 1 insertions, 5 deletions
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("</td>") } - override fun formatLink(text: String, location: Location): String { - return "<a href=\"${location.path}\">${text}</a>" - } - override fun formatLink(text: String, href: String): String { return "<a href=\"${href}\">${text}</a>" } @@ -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)}<br/>") + to.appendln("<a href=\"${location.path}\">${signature}</a><br/>") } override fun appendOutlineLevel(to: StringBuilder, body: () -> Unit) { |