From 184a24c93e0939c5a9ceb10cf3c3992f11165219 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 25 Feb 2015 19:03:51 +0100 Subject: resolve references through single map from signature to DocumentationNode (enables cross-language references) --- src/Formats/StructuredFormatService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Formats') 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)) } -- cgit