insert space after eq only (IDEA-87901)

This commit is contained in:
anna
2012-07-03 13:34:18 +02:00
parent 6c03127522
commit 6562511d1a
@@ -814,7 +814,7 @@ public class Messages {
textField.setText(textArea.getText());
}
});
String s = textField.getText().replaceAll("[ ]*=[ ]*", "=").replaceAll("\\-", "\\ \\-");
String s = textField.getText().replaceAll("[ ]*=[ ]*", "=").replaceAll("=\\-", "=\\ \\-");
List<String> lines = StringUtil.splitHonorQuotes(s, ' ');
textArea.setText(StringUtil.join(lines, "\n"));
InsertPathAction.copyFromTo(textField, textArea);