- add 'requires' and 'conflicts' tag aliases.
- python: return ds, not tuple, for ds iteration.
- python: permit integer keys to ts.dbMatch().
+ - xml: use <foo/> markup for empty tags.
4.3 -> 4.3.1:
- fix: don't add leading space to %* argv expansion (#119059).
}
/*@=branchstate@*/
- nb = 2 * strlen(xtag) + sizeof("\t<></>") + xmlstrlen(s);
- te = t = alloca(nb);
- te = stpcpy( stpcpy( stpcpy(te, "\t<"), xtag), ">");
- te = xmlstrcpy(te, s);
- te += strlen(te);
- te = stpcpy( stpcpy( stpcpy(te, "</"), xtag), ">");
+ nb = xmlstrlen(s);
+ if (nb == 0) {
+ nb += strlen(xtag) + sizeof("\t</>");
+ te = t = alloca(nb);
+ te = stpcpy( stpcpy( stpcpy(te, "\t<"), xtag), "/>");
+ } else {
+ nb += 2 * strlen(xtag) + sizeof("\t<></>");
+ te = t = alloca(nb);
+ te = stpcpy( stpcpy( stpcpy(te, "\t<"), xtag), ">");
+ te = xmlstrcpy(te, s);
+ te += strlen(te);
+ te = stpcpy( stpcpy( stpcpy(te, "</"), xtag), ">");
+ }
/* XXX s was malloc'd */
/*@-branchstate@*/