From 09a8a25f97970264a862be95ec3a8a3e842b54d3 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 16 Feb 2012 15:56:48 +0100 Subject: [PATCH] property doc comment was collected in reverse order (IDEA-81457) --- .../com/intellij/lang/properties/psi/impl/PropertyImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/properties/src/com/intellij/lang/properties/psi/impl/PropertyImpl.java b/plugins/properties/src/com/intellij/lang/properties/psi/impl/PropertyImpl.java index d12762784319..53023371f369 100644 --- a/plugins/properties/src/com/intellij/lang/properties/psi/impl/PropertyImpl.java +++ b/plugins/properties/src/com/intellij/lang/properties/psi/impl/PropertyImpl.java @@ -367,10 +367,10 @@ public class PropertyImpl extends PropertiesStubElementImpl 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;