Index: lib/Locale/Po4a/Xml.pm =================================================================== RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Xml.pm,v retrieving revision 1.28 diff -u -r1.28 Xml.pm --- lib/Locale/Po4a/Xml.pm 30 May 2005 07:05:23 -0000 1.28 +++ lib/Locale/Po4a/Xml.pm 21 Oct 2005 18:45:05 -0000 @@ -347,7 +347,7 @@ my @tag_types = ( { beginning => "!--", end => "--", - breaking => 1, + breaking => 0, f_extract => \&tag_extract_comment, f_translate => \&tag_trans_comment}, { beginning => "?xml", @@ -830,10 +830,22 @@ while (!$eof and !$self->breaking_tag) { my @text; - # Append the found inline tag - ($eof,@text)=$self->get_string_until('>',{include=>1,remove=>1,unquoted=>1}); - push @paragraph, @text; + my $type = $self->tag_type; + my $f_extract = $tag_types[$type]->{'f_extract'}; + if ( defined($f_extract) + and $f_extract eq \&tag_extract_comment) { + # Remove the content of the comments + ($eof, @text) = $self->extract_tag($type,1); + } else { + # Append the found inline tag + ($eof,@text)=$self->get_string_until('>', + {include=>1, + remove=>1, + unquoted=>1}); + push @paragraph, @text; + } + # Next tag ($eof,@text)=$self->get_string_until('<',{remove=>1}); if ($#text > 0) { push @paragraph, @text;