X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FTTParser.pm;h=d27e412678ec355a458e7a89ed2fad2b1dbe8278;hb=5f740f03fe8e8ee2b7f2e6a64ce9d50cc3cad25f;hp=5058069e851135d1b79b6cc00a84f5b7f047c89a;hpb=8a32843ebf8ba959ac2af95cf76caae71209b8db;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} );