diff options
author | vmishenev <vad-mishenev@yandex.ru> | 2021-09-24 12:32:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 12:32:58 +0300 |
commit | bcdb4366a55a25ddd1314cbf79ab27a8006c160c (patch) | |
tree | 180e0fe2bf528ff23854614de15533403844753b /plugins/base | |
parent | 59e2e5f0c7275804d5fff9b85c92c1f7f4fb3387 (diff) | |
download | dokka-bcdb4366a55a25ddd1314cbf79ab27a8006c160c.tar.gz dokka-bcdb4366a55a25ddd1314cbf79ab27a8006c160c.tar.bz2 dokka-bcdb4366a55a25ddd1314cbf79ab27a8006c160c.zip |
Fix whitespaces inside `@link` tag (#2156)
Diffstat (limited to 'plugins/base')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt | 4 | ||||
-rw-r--r-- | plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt index b7e60cee..ecf31541 100644 --- a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt +++ b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt @@ -332,8 +332,8 @@ class JavadocParser( ) = when (tag.name) { "link", "linkplain" -> tag.referenceElement() - ?.toDocumentationLinkString(tag.dataElements.filterIsInstance<PsiDocToken>().joinToString("") { - it.stringifyElementAsText(keepFormatting = true).orEmpty() + ?.toDocumentationLinkString(tag.dataElements.filterIsInstance<PsiDocToken>().joinToString(" ") { + it.stringifyElementAsText(keepFormatting = false).orEmpty() }) "code" -> "<code data-inline>${dataElementsAsText(tag)}</code>" "literal" -> "<literal>${dataElementsAsText(tag)}</literal>" diff --git a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt index 1a6dd6de..75731665 100644 --- a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt +++ b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt @@ -262,9 +262,10 @@ class ContentForParamsTest : BaseAbstractTest() { | * @deprecated Instead of using a target fragment to pass results, the fragment requesting a | * result should use | * {@link java.util.HashMap#containsKey(java.lang.Object) FragmentManager#setFragmentResult(String, Bundle)} to deliver results to - | * {@link java.util.HashMap#containsKey(java.lang.Object) FragmentResultListener} instances registered by other fragments via + | * {@link java.util.HashMap#containsKey(java.lang.Object) + | * FragmentResultListener} instances registered by other fragments via | * {@link java.util.HashMap#containsKey(java.lang.Object) FragmentManager#setFragmentResultListener(String, LifecycleOwner, - | * FragmentResultListener)}. + | * FragmentResultListener)}. | */ | public class DocGenProcessor { | public String setTargetFragment(){ |