Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Applied patch from Bradley Baetz to fix defblock #line numbers - see …

…defblocks = join(, map {

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@1228 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
commit 75a1ed94e64520394b5cced403e3979ceb103e29 1 parent 358b848
@abw authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Template/Document.pm
View
2  lib/Template/Document.pm
@@ -236,7 +236,7 @@ sub as_perl {
$defblocks = join('', map {
my $code = $defblocks->{ $_ };
- $code =~ s/\n/\n /g;
+ $code =~ s/\n(?!#line)/\n /g;
$code =~ s/\s*$//;
" '$_' => $code,\n";
} keys %$defblocks);

0 comments on commit 75a1ed9

Please sign in to comment.
Something went wrong with that request. Please try again.