Fix bug: in a PI such as <?test ?pi?>, we got into an incorrect state

on the second ?. This is now properly handled.
This commit is contained in:
Laurence Withers 2006-08-07 12:51:11 +01:00
commit dc6a4cf430

View file

@ -314,9 +314,12 @@ doBuffer:
callback->PI(buffer2, buffer);
buffer.clear();
state = StateNone;
} else if(ch == '?') {
buffer += L'?';
} else {
buffer += L'?';
buffer += ch;
state = StatePIData;
}
break;