aboutsummaryrefslogtreecommitdiff
path: root/office/texlive/patches/texcount-scalar-fixup.diff
blob: bdd166b81a5cbfd33fa7624f036319244daf68e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- share/texmf-dist/scripts/texcount/texcount.pl.orig	2013-11-11 18:16:18.388313783 +0000
+++ share/texmf-dist/scripts/texcount/texcount.pl	2013-11-11 18:16:32.407314117 +0000
@@ -2218,7 +2218,7 @@
   }
   $template=~s/\{VER\}/$versionnumber/gi;
   # TODO: Should base warnings and errors on TeXcode or Main object
-  $template=__process_template($template,"W|WARN|WARNING|WARNINGS",length(%warnings));
+  $template=__process_template($template,"W|WARN|WARNING|WARNINGS",scalar(keys %warnings));
   $template=__process_template($template,"E|ERR|ERROR|ERRORS",$errorcount);
   $template=__process_template($template,"S|SUM",get_sum_count($count));
   $template=__process_template($template,"T|TITLE",$count->{'title'}||"");