Skip Menu |

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

Report information
The Basics
Id: 47024
Status: resolved
Worked: 2 min
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: bbaetz [...] gmail.com
Cc:
AdminCc:

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



Subject: #line directives wrong for DEFBLOCKS
Date: Wed, 17 Jun 2009 13:46:19 +1000
To: bug-template-toolkit [...] rt.cpan.org
From: Bradley Baetz <bbaetz [...] gmail.com>
DEFBLOCKS need the same fix that the BLOCK got in http://rt.cpan.org/Public/Bug/Display.html?id=46269, to avoid indenting #line directives: --- lib/Template/Document.pm.orig 2009-06-17 13:44:24.000000000 +1000 +++ lib/Template/Document.pm 2009-06-17 04:58:45.000000000 +1000 @@ -236,7 +236,7 @@ $defblocks = join('', map { my $code = $defblocks->{ $_ }; - $code =~ s/\n/\n /g; + $code =~ s/\n(?!#line)/\n /g; $code =~ s/\s*$//; " '$_' => $code,\n"; } keys %$defblocks);

Message body is not shown because sender requested not to inline it.

Thanks Bradley, patch applied.