X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FTTParser.pm;h=d27e412678ec355a458e7a89ed2fad2b1dbe8278;hb=499ff3618c4507619a84bd793727f51f5889e5b4;hp=5058069e851135d1b79b6cc00a84f5b7f047c89a;hpb=108e901043f0766f8c103f3826b5af1cdb6daaa4;p=koha_fer diff --git a/C4/TTParser.pm b/C4/TTParser.pm index 5058069e85..d27e412678 100644 --- a/C4/TTParser.pm +++ b/C4/TTParser.pm @@ -75,7 +75,7 @@ sub text{ my $is_cdata = shift; while($work){ # if there is a template_toolkit tag - if( $work =~ m/\[%.*?\]/ ){ + if( $work =~ m/\[%.*?%\]/ ){ #everything before this tag is text (or possibly CDATA), add a text token to tokens if $` if( $` ){ my $t = C4::TmplToken->new( $`, ($is_cdata? C4::TmplTokenType::CDATA : C4::TmplTokenType::TEXT), $line, $self->{filename} );