View | Details | Raw Unified | Return to bug 12207
Collapse All | Expand All

(-)a/C4/TTParser.pm (-2 / +1 lines)
Lines 75-81 sub text{ Link Here
75
    my $is_cdata = shift;
75
    my $is_cdata = shift;
76
    while($work){
76
    while($work){
77
        # if there is a template_toolkit tag
77
        # if there is a template_toolkit tag
78
        if( $work =~ m/\[%.*?\]/ ){
78
        if( $work =~ m/\[%.*?%\]/ ){
79
            #everything before this tag is text (or possibly CDATA), add a text token to tokens if $`
79
            #everything before this tag is text (or possibly CDATA), add a text token to tokens if $`
80
            if( $` ){
80
            if( $` ){
81
                my $t = C4::TmplToken->new( $`, ($is_cdata? C4::TmplTokenType::CDATA : C4::TmplTokenType::TEXT), $line, $self->{filename} );
81
                my $t = C4::TmplToken->new( $`, ($is_cdata? C4::TmplTokenType::CDATA : C4::TmplTokenType::TEXT), $line, $self->{filename} );
82
- 

Return to bug 12207