From: robertlipe Date: Wed, 10 Jul 2013 00:14:34 +0000 (+0000) Subject: Fix problem in self-closing tags in GPX extensions, such as would be found in geocach... X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~543 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=59bd15894168bd853d3814e4af6e9a3247cf72d3;p=gpsbabel.git Fix problem in self-closing tags in GPX extensions, such as would be found in geocaches with no travel bugs --- diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index 1b57bdbf4..da7b551b3 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -1429,6 +1429,8 @@ fprint_xml_chain(xml_tag* tag, const waypoint* wpt) if (!tag->cdata && !tag->child) { write_tag_attributes(tag); + // No children? Self-closing tag. + writer.writeEndElement(); } else { write_tag_attributes(tag);