aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2020-10-15 15:34:25 +0200
committerKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2020-10-15 17:04:49 +0200
commit7f948864077388e10ba3608b0d5e1d9a4ea0f4d9 (patch)
tree98ec83ad745315787d79cd662eba8a86b1f7ddcb /plugins/base/src/main
parent9b16f25eb2c29c362f69e5e33fce164ce0dc00e1 (diff)
downloaddokka-7f948864077388e10ba3608b0d5e1d9a4ea0f4d9.tar.gz
dokka-7f948864077388e10ba3608b0d5e1d9a4ea0f4d9.tar.bz2
dokka-7f948864077388e10ba3608b0d5e1d9a4ea0f4d9.zip
Fix displaying authors
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt b/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt
index 261f98dd..fad5ff36 100644
--- a/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt
@@ -240,9 +240,9 @@ class JavadocParser(
private fun PsiDocTag.contentElements(): List<PsiElement> =
dataElements.mapNotNull { it.takeIf { it is PsiDocToken && it.text.isNotBlank() } }
- private fun PsiDocTag.authorContentElements(): List<PsiElement> = listOf(
+ private fun PsiDocTag.authorContentElements(): List<PsiElement> = listOfNotNull(
dataElements[0],
- dataElements[0].nextSibling,
+ dataElements[0].nextSibling?.takeIf { it.text != dataElements.drop(1).firstOrNull()?.text },
*dataElements.drop(1).toTypedArray()
)