Skip Menu |
 

This queue is for tickets about the Text-Template CPAN distribution.

Report information
The Basics
Id: 46639
Status: resolved
Priority: 0/
Queue: Text-Template

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

Bug Information
Severity: Wishlist
Broken in: 1.45
Fixed in: 1.48



Subject: DELIMITERS does not allow for the same string to be used
Download (untitled) / with headers
text/plain 612b
The DELIMITERS option requires the 2 delimiters to be different. my $template= 'hello, @@$foo@@, I like @@$bar@@'; my $text= fill_in_string( $template, DELIMITERS => [ '@@', '@@'], HASH => { foo => 'toto', bar => 'tata' }, ) or die $Text::Template::ERROR; gives "End of data inside program text that began at line 1" This may be considered a feature, but in case it isn't, the attached patch fixes and tests this. The tests only tests valid templates, I am not sure bogus templates need to be tested, let me know if you'd like me to add it. Thanks __ mirod
Subject: text_template_patch.p1
Download text_template_patch.p1
application/octet-stream 2.3k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 198b
I've committed this for v1.48 Sorry this didn't happen sooner. I have recently taken over maintenance of this module and am working through the RT queue as time allows. -- Regards, Michael Schout


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.