mirror of
https://github.com/zoriya/xmlParser.git
synced 2025-12-06 02:56:10 +00:00
Cleaning up
This commit is contained in:
@@ -44,10 +44,8 @@ node *xml_parsestr(char *nodestr)
|
||||
if (xml_handle_prolog(&nodestr) < 0)
|
||||
return (NULL);
|
||||
for (int i = 0; nodestr[i]; i++) {
|
||||
if (nodestr[i] == ' ') {
|
||||
if (!is_space_usefull(nodestr, i))
|
||||
nodestr[i] = '\t';
|
||||
}
|
||||
if (nodestr[i] == ' ' && !is_space_usefull(nodestr, i))
|
||||
nodestr[i] = '\t';
|
||||
}
|
||||
for (int i = 0; nodestr[i]; i++) {
|
||||
if (nodestr[i] == '\t' || nodestr[i] == '\n' || nodestr[i] == '\r') {
|
||||
|
||||
Reference in New Issue
Block a user