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 {
|
||||
APPEND_CH(buffer, '-');
|
||||
APPEND_CH(buffer, ch);
|
||||
ctx->state = StateComment;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -354,6 +354,7 @@ doBuffer:
|
|||
else {
|
||||
buffer += L'-';
|
||||
buffer += ch;
|
||||
state = StateComment;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue