Normalize: split lines by 'at...'

This commit is contained in:
Anton.Makeev
2009-10-20 17:50:02 +04:00
parent afcd16fcaf
commit ee7ca517b9
@@ -256,7 +256,10 @@ public class UnscrambleDialog extends DialogWrapper{
static String normalizeText(@NonNls String text) {
StringBuilder builder = new StringBuilder(text.length());
text = text.replaceAll("(\\S[ \\t\\x0B\\f\\r]+)(at\\s+)", "$1\n$2");
String[] lines = text.split("\n");
boolean first = true;
boolean inAuxInfo = false;
for (String line : lines) {