diff --git a/source/myhtml/serialization.c b/source/myhtml/serialization.c index 5d62a9b..c10a513 100755 --- a/source/myhtml/serialization.c +++ b/source/myhtml/serialization.c @@ -149,13 +149,13 @@ mystatus_t myhtml_serialization_node_callback(myhtml_tree_node_t* node, mycore_c attr = attr->next; - if (attr) { + if(attr) { myhtml_tree_attr_t *system_id = NULL, *public_id = NULL; - if (attr->value.length == 6) { - if (mycore_strcasecmp(attr->value.data, "SYSTEM") == 0) { + if(attr->value.length == 6) { + if(mycore_strcasecmp(attr->value.data, "SYSTEM") == 0) { system_id = attr->next; - } else if (mycore_strcasecmp(attr->value.data, "PUBLIC") == 0) { + } else if(mycore_strcasecmp(attr->value.data, "PUBLIC") == 0) { public_id = attr->next; system_id = public_id ? public_id->next : NULL; }