diff options
author | Vladimir Kryachko <vkryachko@google.com> | 2020-09-19 13:52:24 -0400 |
---|---|---|
committer | Vladimir Kryachko <vkryachko@google.com> | 2020-09-19 13:57:53 -0400 |
commit | a5af8799cebd1fb57e92b998f858f3bc410f9c42 (patch) | |
tree | b18347aad89210d70b58271602e7f8b19c4ff8d4 /core/src/main/kotlin/Formats/DacHtmlFormat.kt | |
parent | 7623b47835aa703c45567dd443c96178a66e2c5e (diff) | |
download | dokka-a5af8799cebd1fb57e92b998f858f3bc410f9c42.tar.gz |
Fix constructor rendering from `<init>` to actual `TypeName`.
For example, class Foo will have a constructor named `Foo` in docs as
opposed to `<init>`.
Bug: 168972258
Change-Id: I1e70d6d15702e5d583054cb95a3a90c328e5f8f5
Diffstat (limited to 'core/src/main/kotlin/Formats/DacHtmlFormat.kt')
-rw-r--r-- | core/src/main/kotlin/Formats/DacHtmlFormat.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/DacHtmlFormat.kt b/core/src/main/kotlin/Formats/DacHtmlFormat.kt index d997f1ca2..bc6429bf5 100644 --- a/core/src/main/kotlin/Formats/DacHtmlFormat.kt +++ b/core/src/main/kotlin/Formats/DacHtmlFormat.kt @@ -75,7 +75,7 @@ class DevsiteLayoutHtmlFormatOutputBuilder( attributes["data-version-added"] = node.apiLevel.name h3(classes = "api-name") { //id = node.signatureForAnchor(logger).urlEncoded() - +node.name + +node.prettyName } apiAndDeprecatedVersions(node) pre(classes = "api-signature no-pretty-print") { renderedSignature(node, LanguageService.RenderMode.FULL) } |