diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-25 19:03:51 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-25 19:03:51 +0100 |
commit | 184a24c93e0939c5a9ceb10cf3c3992f11165219 (patch) | |
tree | f4334b51d9f2bc021d5af55aca3e0be9e8ceec37 /src/Formats | |
parent | 29e48dcbf30ac16013d9c8951e4fa088e8d9b016 (diff) | |
download | dokka-184a24c93e0939c5a9ceb10cf3c3992f11165219.tar.gz dokka-184a24c93e0939c5a9ceb10cf3c3992f11165219.tar.bz2 dokka-184a24c93e0939c5a9ceb10cf3c3992f11165219.zip |
resolve references through single map from signature to DocumentationNode (enables cross-language references)
Diffstat (limited to 'src/Formats')
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index efddd578..2eb298d8 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -57,7 +57,8 @@ public abstract class StructuredFormatService(locationService: LocationService, is ContentListItem -> append(formatListItem(formatText(location, content.children))) is ContentNodeLink -> { - val linkTo = locationHref(location, content.node) + val node = content.node + val linkTo = if (node != null) locationHref(location, node) else "#" val linkText = formatText(location, content.children) append(formatLink(linkText, linkTo)) } |