mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
escape line breaks before presentation (EA-53318 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user