diff options
Diffstat (limited to 'office/texlive/patches/texcount-scalar-fixup.diff')
-rw-r--r-- | office/texlive/patches/texcount-scalar-fixup.diff | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/office/texlive/patches/texcount-scalar-fixup.diff b/office/texlive/patches/texcount-scalar-fixup.diff new file mode 100644 index 0000000000..bdd166b81a --- /dev/null +++ b/office/texlive/patches/texcount-scalar-fixup.diff @@ -0,0 +1,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'}||""); |