mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 03:15:30 +00:00
Fixed mxmlSetDeclarationf implementation (Issue #322)
This commit is contained in:
parent
c81526ad84
commit
0c97db4186
@ -9,6 +9,7 @@ Changes in Mini-XML 4.0.3
|
||||
set (Issue #325)
|
||||
- Now install the man page as "mxml4" to allow parallel installation of Mini-XML
|
||||
4.x and 3.x (Issue #324)
|
||||
- Fixed `mxmlSetDeclarationf` implementation (Issue #322)
|
||||
|
||||
|
||||
Changes in Mini-XML 4.0.2
|
||||
|
@ -263,10 +263,10 @@ mxmlSetDeclarationf(mxml_node_t *node, // I - Node
|
||||
|
||||
|
||||
// Range check input...
|
||||
if (node && node->type == MXML_TYPE_ELEMENT && node->child && node->child->type == MXML_TYPE_COMMENT)
|
||||
if (node && node->type == MXML_TYPE_ELEMENT && node->child && node->child->type == MXML_TYPE_DECLARATION)
|
||||
node = node->child;
|
||||
|
||||
if (!node || node->type != MXML_TYPE_COMMENT)
|
||||
if (!node || node->type != MXML_TYPE_DECLARATION)
|
||||
return (false);
|
||||
else if (!format)
|
||||
return (false);
|
||||
|
Loading…
Reference in New Issue
Block a user