From f4d2bf40e7b7e62aeb27bf0f1cabe53e35e68fd2 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Wed, 27 Jul 2022 10:25:16 +0200 Subject: Disable copy button for signatures (#2577) * Disable copy button for signatures --- plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/base/src/main/kotlin') diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 9be7428a..30ae0562 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -95,7 +95,6 @@ open class HtmlRenderer( } node.dci.kind in setOf(ContentKind.Symbol) -> div("symbol $additionalClasses") { childrenCallback() - if (node.hasStyle(TextStyle.Monospace)) copyButton() } node.hasStyle(TextStyle.BreakableAfter) -> { span { childrenCallback() } @@ -472,9 +471,9 @@ open class HtmlRenderer( div { it.build(this, pageContext, sourceSetRestriction) } - if (it is ContentLink && !anchorDestination.isNullOrBlank()) buildAnchorCopyButton( - anchorDestination - ) + if (it is ContentLink && !anchorDestination.isNullOrBlank()) { + buildAnchorCopyButton(anchorDestination) + } } } } -- cgit