Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

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

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

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

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

X Attachments



X History Display mode: Brief headersFull headers
#   Tue Jun 16 23:46:46 2009 bbaetz[...]gmail.com - Ticket created  
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>
[text/plain 544b]
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);

[application/octet-stream 404b]
#   Wed Jun 17 02:10:38 2009 ABW - Correspondence added 2 min  
[text/plain 32b]
Thanks Bradley, patch applied.

#   Wed Jun 17 02:10:43 2009 RT_System - Status changed from 'new' to 'open'  
#   Wed Jun 17 02:10:52 2009 ABW - Status changed from 'open' to 'resolved'