Skip Menu |

This queue is for tickets about the SVG CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: SSEVERIN [...] cpan.org
Cc:
AdminCc:

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



Subject: Minor documentation problems
I've been working with the module for a while now and have come across a few problems and typos in the documentation provided in SVG::Manual. There are a couple that genuinely caused confusion: 1) Under "group", and probably elsewhere, specifying the 'font' in the 'style' attribute as an array ref causes a literal 'ARRAY(0x...)' to be output by xmlify. Using a string instead works fine. 2) Under "text", using 'cdata' as an option as in the second example causes a 'cdata="..."' attribute on the 'text' element, which might somehow be technically correct but is not something that any SVG viewer I tried understands. Instead, using the ->cdata(...) method works fine. Miscellaneous typos: * s/\. groups/. Groups/ * s/imputed/input/ * s/Refer\\/Refer/ * Last example under "text" is missing a comma after 'y=>10' Thanks for the handy module, -Steve
Hi Steve, On Sun Jul 25 15:12:29 2010, SSEVERIN wrote: Show quoted text
> 2) Under "text", using 'cdata' as an option as in the second example > causes a 'cdata="..."' attribute on the 'text' element, which might > somehow be technically correct but is not something that any SVG viewer
The example says that the option is "-cdata". The minus sign is important here. With that it works at least for me. Haven't checked any of your other points. Best wishes, Lutz
All typos seem to have been corrected in master. Ticket can be closed.