Fix a bug where two separate '-' characters in a comment were interpreted as a single '--' sequence.
This commit is contained in:
parent
c2d02165d7
commit
f1fa8b5625
|
@ -372,6 +372,7 @@ int csxml_feedChar(struct csxml* ctx, char ch)
|
||||||
else {
|
else {
|
||||||
APPEND_CH(buffer, '-');
|
APPEND_CH(buffer, '-');
|
||||||
APPEND_CH(buffer, ch);
|
APPEND_CH(buffer, ch);
|
||||||
|
ctx->state = StateComment;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -354,6 +354,7 @@ doBuffer:
|
||||||
else {
|
else {
|
||||||
buffer += L'-';
|
buffer += L'-';
|
||||||
buffer += ch;
|
buffer += ch;
|
||||||
|
state = StateComment;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue