diff options
-rw-r--r-- | plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt index b33351ac..1b581355 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt @@ -442,12 +442,18 @@ open class DefaultPageCreator( kind = ContentKind.Comment, styles = this@group.mainStyles, ) { - if (it.address != null) link( + it.address?.let { dri -> + link( + it.name, + dri, + kind = ContentKind.Comment, + styles = mainStyles + ContentStyle.RowTitle + ) + } ?: text( it.name, - it.address!!, - kind = ContentKind.Comment + kind = ContentKind.Comment, + styles = mainStyles + ContentStyle.RowTitle ) - else text(it.name, kind = ContentKind.Comment) comment(it.root) } } |