From dd11ecd1de3bab7f3f61065637ec2e93fe14690e Mon Sep 17 00:00:00 2001 From: Stuart Date: Mon, 12 Jan 2026 14:51:57 -0500 Subject: [PATCH] Include block comments when stripping Added regex to remove comments enclosed in \begin{comment} and \end{comment}. --- texprlcount.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/texprlcount.pl b/texprlcount.pl index f5b397a..2b5fc85 100755 --- a/texprlcount.pl +++ b/texprlcount.pl @@ -84,6 +84,7 @@ (&@) # We strip comments from the tex file $texfile =~ s/[^\\]%[^\n]*//g; +$texfile =~ s/\\begin\{comment\}.*?\\end\{comment\}//sg; # We count the number of characters in the abstract my $abstract;