Fix a bug where two separate '-' characters in a comment were interpreted as a single '--' sequence.

This commit is contained in:
Laurence Withers 2006-09-29 10:41:01 +01:00
parent c2d02165d7
commit f1fa8b5625
2 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,7 @@ int csxml_feedChar(struct csxml* ctx, char ch)
else {
APPEND_CH(buffer, '-');
APPEND_CH(buffer, ch);
ctx->state = StateComment;
}
break;

View File

@ -354,6 +354,7 @@ doBuffer:
else {
buffer += L'-';
buffer += ch;
state = StateComment;
}
break;