Subject: | Invalid quote character checking in CAM::PDF::PageText |
Date: | Thu, 27 Dec 2018 08:15:34 -0800 |
To: | bug-CAM-PDF [...] rt.cpan.org |
From: | Carl Carstenson <carl [...] leathersfuels.net> |
When $block->{name} is a quote character (either single or double),
PageText->render() skips the text. This is due to improper use of Perl's
q{} function. The module escapes these characters with a backslash,
causing a two-byte quoted string. The module works when I remove the
backslashes on lines 93 and 94.
93,94c93,94
< : $block->{name} eq q{\'} ? _Tquote( $str,
\@args )
< : $block->{name} eq q{\"} ? _Tquote( $str,
\@args )
---
Show quoted text
> : $block->{name} eq q{'} ? _Tquote( $str,
\@args )
Show quoted text > : $block->{name} eq q{"} ? _Tquote( $str,
\@args )
Distribution: CAM-PDF-1.60
Perl version: v5.16.3
O/S: Ubuntu 18.04.1 LTS
Thanks.
Carl Carstenson