Bug 4473: Making a change to TmplTokenizer.pm to stop translation error
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 20 Dec 2010 19:31:07 +0000 (08:31 +1300)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Fri, 24 Dec 2010 04:19:43 +0000 (23:19 -0500)
(cherry picked from commit f5e65148ace51060f739fce4c26b772d09f35ba6)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
misc/translator/TmplTokenizer.pm

index 12076e6..5c4f28b 100644 (file)
@@ -528,8 +528,8 @@ sub _next_token_intermediate {
        $it = $this->_next_token_internal($h);
        if (defined $it && $it->type == TmplTokenType::TAG) {
            if ($it->string =~ /^<(script|style|textarea)\b/is ||
-            ($this->filename =~ /opensearch/ && $it->string =~ /^<(description)\b/) # FIXME special case to handle
-                                                                                    # a CDATA in opac-opensearch.tmpl
+            ($this->filename =~ /(opensearch)|(opac-showreviews-rss)/ && $it->string =~ /^<(description)\b/) # FIXME special case to handle
+                                                                                    # a CDATA in opac-opensearch.tmpl and opac-showreviews-rss.tmpl
            ) {
                $this->_set_cdata_mode( 1 );
                $this->_set_cdata_close( "</$1\\s*>" );