mirror of
https://github.com/zoriya/xmlParser.git
synced 2026-05-27 16:11:44 +00:00
Supporting \r for windows
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ node *xml_parsestr(char *nodestr)
|
||||
}
|
||||
}
|
||||
for (int i = 0; nodestr[i]; i++) {
|
||||
if (nodestr[i] == '\t' || nodestr[i] == '\n') {
|
||||
if (nodestr[i] == '\t' || nodestr[i] == '\n' || nodestr[i] == '\r') {
|
||||
nodestr[i] = nodestr[i + 1];
|
||||
nodestr[i + 1] = '\t';
|
||||
i = 0;
|
||||
|
||||
Reference in New Issue
Block a user