slackbuilds_ponce/office/texlive/patches/texcount-scalar-fixup.diff
David Woodfall 8600bd8bf3 office/texlive: Patched to fix texcount.pl
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2013-11-11 14:22:47 -06:00

11 lines
724 B
Diff

--- 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'}||"");