Compiler&plugin deprecations cleanup: string operations.
This commit is contained in:
@@ -71,7 +71,7 @@ object DocCommentConverter {
|
||||
private fun convertInlineDocTag(tag: PsiInlineDocTag) = when(tag.getName()) {
|
||||
"code", "literal" -> {
|
||||
val text = tag.getDataElements().map { it.getText() }.join("")
|
||||
val escaped = StringUtil.escapeXml(text.trimLeading())
|
||||
val escaped = StringUtil.escapeXml(text.trimStart())
|
||||
if (tag.getName() == "code") "<code>$escaped</code>" else escaped
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user