property doc comment was collected in reverse order (IDEA-81457)

This commit is contained in:
Dmitry Jemerov
2012-02-16 19:07:05 +01:00
parent 6e239f995a
commit 09a8a25f97
@@ -367,10 +367,10 @@ public class PropertyImpl extends PropertiesStubElementImpl<PropertyStub> implem
doc = doc.getPrevSibling();
}
if (doc instanceof PsiComment) {
if (text.length() != 0) text.append("\n");
if (text.length() != 0) text.insert(0, "\n");
String comment = doc.getText();
String trimmed = StringUtil.trimStart(StringUtil.trimStart(comment, "#"), "!");
text.append(trimmed.trim());
text.insert(0, trimmed.trim());
}
else {
break;