projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
796c201
)
Templates: bei verschachtelten <%if%> / <%foreach%> das richtige <%end%> finden
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 31 Jan 2011 13:07:21 +0000
(14:07 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 31 Jan 2011 13:07:21 +0000
(14:07 +0100)
SL/Template/LaTeX.pm
patch
|
blob
|
history
diff --git
a/SL/Template/LaTeX.pm
b/SL/Template/LaTeX.pm
index
d1c2080
..
8736cc2
100644
(file)
--- a/
SL/Template/LaTeX.pm
+++ b/
SL/Template/LaTeX.pm
@@
-134,7
+134,7
@@
sub find_end {
my $keyword_pos = $pos - 1 + $tag_start_len;
- if ((substr($text, $keyword_pos, 2) eq 'if') || (substr($text, $keyword_pos,
3
) eq 'foreach')) {
+ if ((substr($text, $keyword_pos, 2) eq 'if') || (substr($text, $keyword_pos,
7
) eq 'foreach')) {
$depth++;
} elsif ((substr($text, $keyword_pos, 4) eq 'else') && (1 == $depth)) {