From aed8bfab6423ac9314a3f2ce146781dfa50938ce Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 19 Apr 2011 17:15:17 +1200 Subject: [PATCH] Bug 5917 : We need to catch the comments for the xslt to work --- misc/translator/TTParser.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/translator/TTParser.pm b/misc/translator/TTParser.pm index 42ddaf61d2..9bc0bbbcf8 100755 --- a/misc/translator/TTParser.pm +++ b/misc/translator/TTParser.pm @@ -39,9 +39,9 @@ sub build_tokens{ $self->{filename} = $filename; $self->handler(start => "start", "self, line, tagname, attr, text"); #signature is start( self, linenumber, tagname, hash of attributes, origional text ) $self->handler(text => "text", "self, line, text, is_cdata"); #signature is text( self, linenumber, origional text, is_cdata ) -# $self->handler(end => "end", "self, line, tag, attr, text"); #signature is end( self, linenumber, tagename, origional text ) + $self->handler(end => "end", "self, line, tag, attr, text"); #signature is end( self, linenumber, tagename, origional text ) $self->handler(declaration => "declaration", "self, line, text, is_cdata"); # declaration -# $self->handler(comment => "comment", "self, line, text, is_cdata"); # comments + $self->handler(comment => "comment", "self, line, text, is_cdata"); # comments # $self->handler(default => "default", "self, line, text, is_cdata"); # anything else $self->marked_sections(1); #treat anything inside CDATA tags as text, should really make it a TmplTokenType::CDATA $self->unbroken_text(1); #make contiguous whitespace into a single token (can span multiple lines) -- 2.39.5