Menu

#2 Backslashes need escaping in strings

open
nobody
None
5
2001-06-29
2001-06-29
No

When text strings within parentheses are entered into
the PDF file, they are escaped with a backslash.
However, backslashes themselves need to be escaped.

The solution is as simple as changing the current
substitution regexp from

s|([()])|\\$1|g

to

s|([()\\])|\\$1|g

throughout PDF::Create::Page.

Version: perl-pdf-0.06

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.