Produce valid XML in the case where a simple tag with no text is produced

(most apparent when including URLs without descriptions)
This commit is contained in:
Gavin Atkinson 2013-05-01 12:07:59 +00:00
parent 5dafec0da8
commit 2c29633dfe
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=41531

View file

@ -28,7 +28,7 @@ sub xml
if (!@Text)
{
# No text in the tag
return ("$Spaces<$TagEtc >\n");
return ("$Spaces<$TagEtc />\n");
}
elsif (@Text == 1)
{