Some Microsoft XML tools generate empty tags like this (Windows CE's
Platform Builder, which probably uses MSXML, but who knows). Diffing
files generated by XML::Twig and by these other tools is painful unless
the tags close the same way. There isn't a technical reason for it,
'normal' tags work just fine.
However, you're correct that it wouldn't be too hard to add a space
into each closing tag after generating the output, it would just be easier
to have XML::Twig do it directly when outputting the tag. If you feel
that adding this negatively impacts other users, I can work around it.
On Mon, 25 Aug 2008, MIROD via RT wrote:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=38627 >
>
> On Wed Aug 20 16:59:00 2008, jtbraun wrote:
>> Choosing empty_tags => 'html' only outputs html-style empty tags (closed
>> with ' />') when the GI for the tag is a recognized HTML tag that is
>> allowed to be empty.
>>
>> Can a new empty_tag style be added that outputs html-like tag endings
>> regardless of the GI of the tag?
>
> Is there any specific reason for this?
>
> Usually HTML-style empty tags are only used so that old browsers display
> properly tags like br and hr.
>
> If you have a tool that needs that style for other tags, I suspect it is
> not really an XML tool. Some post-processing of the XML output by
> XML::Twig might be just as easy, and would not impact other users.
>
> Does this make sense?
>
> __
> mirod
>