projects
/
SXSI
/
XMLTree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b944271
)
Fixes the printing of empty attributes (<a id=""> </a>).
author
Kim Nguyễn
<kn@lri.fr>
Fri, 12 Oct 2012 18:52:47 +0000
(20:52 +0200)
committer
Kim Nguyễn
<kn@lri.fr>
Fri, 12 Oct 2012 18:52:47 +0000
(20:52 +0200)
xml-tree.cpp
patch
|
blob
|
history
diff --git
a/xml-tree.cpp
b/xml-tree.cpp
index
d051212
..
d31c1ce
100644
(file)
--- a/
xml-tree.cpp
+++ b/
xml-tree.cpp
@@
-559,6
+559,7
@@
void xml_tree::print(xml_tree::node_t x, int fd, bool no_text)
uputs((const char*) &(get_tag_name_by_ref(tag(n))[3]), fd);
n++;
uputs("=\"", fd);
+ current_text += (current_text[0] == 1);
read = uprintf((const char*) current_text, fd);
current_text += read + 1;
uputc('"', fd);