From b7f886205f87a5ad2101f7c1f0aca4379ed129f5 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 6 Oct 2010 17:42:46 -0400 Subject: [PATCH] bug 4472: in a hackish fashion, quiet warnings about DOCTYPE in the XSLT Signed-off-by: Galen Charlton --- misc/translator/TmplTokenizer.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/translator/TmplTokenizer.pm b/misc/translator/TmplTokenizer.pm index 838a59faa8..1413f77172 100644 --- a/misc/translator/TmplTokenizer.pm +++ b/misc/translator/TmplTokenizer.pm @@ -473,7 +473,8 @@ sub _next_token_internal { ($kind, $it) = (TmplTokenType::TAG, "$head>"); $this->_set_readahead( $post ); $ok_p = 1; - warn_normal "SGML \"closed start tag\" notation: $head<\n", $this->line_number if $tail eq ''; + warn_normal "SGML \"closed start tag\" notation: $head<\n", $this->line_number if $tail eq '' + and $head ne '_peek_readahead =~ /^)$re_directive*.)*-->/os) { ($kind, $it) = (TmplTokenType::COMMENT, $&); -- 2.39.5