Compiler&plugin deprecations cleanup: string operations.

This commit is contained in:
Ilya Gorbunov
2015-06-25 23:46:18 +03:00
parent 35166f44ae
commit 6d4e48ab9a
10 changed files with 15 additions and 15 deletions
@@ -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
}