OpenDocument Druck: foreach Konstrukte korrekt ausschneiden
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 7 Aug 2015 11:48:19 +0000 (13:48 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 7 Aug 2015 11:48:19 +0000 (13:48 +0200)
SL/Template/OpenDocument.pm

index 63439c7..5cf68ee 100644 (file)
@@ -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)) {