Subject: | xmlify() multiple generator comments |
Date: | Wed, 22 Jun 2011 10:03:34 +1000 |
To: | bug-SVG [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
Each ->xmlify() seems to add an extra generator comment. Eg.
use SVG;
my $svg = SVG->new;
$svg->xmlify;
print $svg->xmlify;
gives two copies,
...
<!--
Generated using the Perl SVG Module V2.50
by Ronan Oger
Info: http://www.roitsystems.com/
-->
<!--
Generated using the Perl SVG Module V2.50
by Ronan Oger
Info: http://www.roitsystems.com/
-->
</svg>
Perhaps it could check if its generator comment is already there before
adding another. Some add-if-not-already-there function might even be of
use for applications or higher libraries which want to add their own
generator comment in a similar way (ie. without repetition).