escape line breaks before presentation (EA-53318 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText)

This commit is contained in:
Anna Kozlova
2014-09-04 19:30:08 +04:00
parent d4af08afd9
commit 60cec6112c
@@ -638,7 +638,7 @@ public class JavaDocInfoGenerator {
String text = o.toString();
PsiType type = variable.getType();
if (type.equalsToText(CommonClassNames.JAVA_LANG_STRING)) {
text = "\"" + StringUtil.shortenPathWithEllipsis(text, 120) + "\"";
text = "\"" + StringUtil.escapeLineBreak(StringUtil.shortenPathWithEllipsis(text, 120)) + "\"";
}
else if (type.equalsToText("char")) text = "'" + text + "'";
try {