diff options
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt | 4 |
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() ) |