Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mxml
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Armando I. Rivera
mxml
Commits
f86c2671
Unverified
Commit
f86c2671
authored
Oct 01, 2018
by
Michael R Sweet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not write siblings of the passed node (Issue #228)
parent
d32a5412
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
21 deletions
+41
-21
CHANGES.md
CHANGES.md
+2
-0
doc/mxml.man
doc/mxml.man
+1
-1
mxml-file.c
mxml-file.c
+38
-20
No files found.
CHANGES.md
View file @
f86c2671
...
...
@@ -9,6 +9,8 @@
trailer "]]" to the string (Issue #216)
-
Cross-compiling failed on install (Issue #218)
-
Fixed a crash bug in the
`mxmlWrite`
functions (Issue #228)
-
The
`mxmlWrite`
functions no longer write the siblings of the passed node
(Issue #228)
-
Updated the markdown and ZIP container libraries used for mxmldoc.
...
...
doc/mxml.man
View file @
f86c2671
.TH mxml 3 "Mini-XML API" "
09/29
/18" "Mini-XML API"
.TH mxml 3 "Mini-XML API" "
10/01
/18" "Mini-XML API"
.SH NAME
mxml \- Mini-XML API
.SH INCLUDE FILE
...
...
mxml-file.c
View file @
f86c2671
...
...
@@ -2972,6 +2972,20 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */
if
((
next
=
current
->
child
)
==
NULL
)
{
if
(
current
==
node
)
{
/*
* Don't traverse to sibling node if we are at the "root" node...
*/
next
=
NULL
;
}
else
{
/*
* Try the next sibling, and continue traversing upwards as needed...
*/
while
((
next
=
current
->
next
)
==
NULL
)
{
if
(
current
==
node
||
!
current
->
parent
)
...
...
@@ -3001,6 +3015,10 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */
col
=
mxml_write_ws
(
current
,
p
,
cb
,
MXML_WS_AFTER_CLOSE
,
col
,
putc_cb
);
}
if
(
current
==
node
)
break
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment