spaces problem fix

This commit is contained in:
Gregory Shrago
2010-06-04 18:47:28 +04:00
parent 0722c8be1c
commit 8a9ea7fb09
2 changed files with 4 additions and 2 deletions
@@ -174,7 +174,9 @@ public class PatternBasedInjectionHelper {
final char ch = curPos++ < text.length()? text.charAt(curPos-1) : 0;
switch (curFrame.state) {
case init:
if (Character.isJavaIdentifierStart(ch)) {
if (Character.isWhitespace(ch)) {
}
else if (Character.isJavaIdentifierStart(ch)) {
curString.append(ch);
curFrame.state = State.name;
}
@@ -93,7 +93,7 @@ public class BaseInjectionPanel extends AbstractInjectionPanel<BaseInjection> {
s = s.substring(1).trim();
}
else {
sb.append(s);
sb.append(s.trim());
continue;
}
if (sb.length() > 0) {