Subject: | inline SVG |
Date: | Tue, 3 Mar 2009 18:30:21 +0100 |
To: | bug-SVG [...] rt.cpan.org |
From: | Wieland Pusch <wieland [...] wielandpusch.de> |
Hello,
in the docs there is written -in-line but in the code you use -inline.
The last works almost for me.
But -inline still produces a first line:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
How can I not get this?
My code is:
use strict;
use warnings;
use SVG('-inline' => 1);
my $svg= SVG->new(width=>200,height=>200);
# add a circle to the group
$svg->circle(cx=>100, cy=>100, r=>50, id=>'circle_id');
print $svg->xmlify;
The output is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg height="200" width="200" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<circle cx="100" cy="100" id="circle_id" r="50" /><!--
Generated using the Perl SVG Module V2.49
by Ronan Oger
Info: http://www.roitsystems.com/
-->
</svg>
Thanks
Wieland Pusch mailto:wieland@wielandpusch.de