Skip Menu |

This queue is for tickets about the SVG CPAN distribution.

Report information
The Basics
Id: 69009
Status: resolved
Priority: 0/
Queue: SVG

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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).
Fixed by Yanick. Fixed by Yanick.