From: Sven Schöling Date: Fri, 7 Aug 2015 11:48:19 +0000 (+0200) Subject: OpenDocument Druck: foreach Konstrukte korrekt ausschneiden X-Git-Tag: release-3.3.0~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=49e7cf41f689d00e2b8497682c2a850acb2d18ab;p=kivitendo-erp.git OpenDocument Druck: foreach Konstrukte korrekt ausschneiden --- diff --git a/SL/Template/OpenDocument.pm b/SL/Template/OpenDocument.pm index 63439c7da..5cf68ee38 100644 --- a/SL/Template/OpenDocument.pm +++ b/SL/Template/OpenDocument.pm @@ -238,7 +238,7 @@ sub parse_block { $table_row .= $1; $end_tag = $2; - substr $contents, 0, length($2), ''; + substr $contents, 0, length($1) + length($2), ''; my $new_text = $self->parse_foreach($var, $table_row, $tag, $end_tag, @indices); if (!defined($new_text)) {