mirror of
https://github.com/lexborisov/Modest
synced 2024-11-21 21:31:25 +03:00
fix doctype serialization
whitespace after <!DOCTYPE required by spec
This commit is contained in:
parent
d41f529335
commit
2d8e6a3444
@ -137,13 +137,13 @@ mystatus_t myhtml_serialization_node_callback(myhtml_tree_node_t* node, mycore_c
|
||||
if(callback("<!DOCTYPE", 9, ptr))
|
||||
return MyCORE_STATUS_ERROR_MEMORY_ALLOCATION;
|
||||
|
||||
if(callback(" ", 1, ptr))
|
||||
return MyCORE_STATUS_ERROR_MEMORY_ALLOCATION;
|
||||
|
||||
if(node->token) {
|
||||
myhtml_tree_attr_t* attr = node->token->attr_first;
|
||||
|
||||
if(attr && attr->key.data && attr->key.length) {
|
||||
if(callback(" ", 1, ptr))
|
||||
return MyCORE_STATUS_ERROR_MEMORY_ALLOCATION;
|
||||
|
||||
if(callback(attr->key.data, attr->key.length, ptr))
|
||||
return MyCORE_STATUS_ERROR_MEMORY_ALLOCATION;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user