Subject: | nl(width) not working |
Date: | Tue, 02 Sep 2014 10:43:08 -0400 |
To: | bug-PDF-API2 [...] rt.cpan.org |
From: | Phil M Perry <philperry [...] hvc.rr.com> |
PDF::API2 v2.022 Perl 5.16.3 Windows 7 severity: Important
From reading the POD and following the code, it appears that the intent
of the nl($width) method is to go down to the next line ($self->lead
points decrease y) and then indent by $width points. It appears to
ignore $width. Thus, nl(width) = nl() = nl(0) = cr(), all of which
produce the PDF command T* . I suggest that the code be changed to
produce (when $width given) $width $self->lead Td. This should not only
go down to the next line (T*), but also move right (+x) by $width, which
appears to be the intent of the method. I have not changed Content.pm or
its POD yet.