From 56ff8f3f24209bc9edaece876c56bd3fde1fbf8a Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Fri, 2 Sep 2022 17:44:05 +0200 Subject: Underline `@param` tag key for more consistency (#2643) * Underline `@param` tag key for more consistency * Correct keyValue table column ratio --- .../src/test/kotlin/parsers/JavadocParserTest.kt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'plugins/base/src/test/kotlin/parsers') diff --git a/plugins/base/src/test/kotlin/parsers/JavadocParserTest.kt b/plugins/base/src/test/kotlin/parsers/JavadocParserTest.kt index f7911c08..b2397b95 100644 --- a/plugins/base/src/test/kotlin/parsers/JavadocParserTest.kt +++ b/plugins/base/src/test/kotlin/parsers/JavadocParserTest.kt @@ -435,6 +435,38 @@ class JavadocParserTest : BaseAbstractTest() { } } + @Test + fun `u tag is handled properly`() { + val source = """ + |/src/main/kotlin/test/Test.java + |package example + | + | /** + | * An example of using u tag: underlined + | */ + | public class Test {} + """.trimIndent() + testInline( + source, + configuration, + ) { + documentablesCreationStage = { modules -> + val docs = modules.first().packages.first().classlikes.single().documentation.first().value + val root = docs.children.first().root + + assertEquals( + listOf( + P(children = listOf( + Text("An example of using u tag: "), + U(children = listOf(Text("underlined"))), + )), + ), + root.children + ) + } + } + } + @Test fun `undocumented see also from java`(){ testInline( -- cgit