Index: /gsdl/trunk/perllib/plugins/ReadTextFile.pm =================================================================== --- /gsdl/trunk/perllib/plugins/ReadTextFile.pm (revision 16752) +++ /gsdl/trunk/perllib/plugins/ReadTextFile.pm (revision 16753) @@ -340,4 +340,8 @@ (exists $self->{'converted_to'} && $self->{'converted_to'} eq 'HTML')){ + # remove comments, including multiline ones, so that we don't match on + # inactive tags (those that are nested inside comments) + $text =~ s///sg; + # remove