From e49726f2b9a61278ba3ced9eb2438d925f5d364c Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Tue, 20 Sep 2022 22:23:52 +0300 Subject: Fix search bar to exclude `(source)` (#2674) --- plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt') diff --git a/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt b/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt index dba6cced..b3d40ca0 100644 --- a/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt +++ b/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt @@ -106,7 +106,7 @@ private fun flattenToText(node: ContentNode): String { is ContentComposite -> node.children .filter { sourceSetRestriction in it.sourceSets } .flatMap { getContentTextNodes(it, sourceSetRestriction) } - .takeIf { node.dci.kind != ContentKind.Annotations } + .takeIf { node.dci.kind != ContentKind.Annotations && node.dci.kind != ContentKind.Source } .orEmpty() else -> emptyList() } -- cgit