From 5de4049c3701b77b230e19cd22c0f1b0e3ac762e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 24 Mar 2020 20:54:13 +0000 Subject: texloganalyser (24mar20) git-svn-id: svn://tug.org/texlive/trunk@54526 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texloganalyser/texloganalyser | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/scripts/texloganalyser/texloganalyser') diff --git a/Master/texmf-dist/scripts/texloganalyser/texloganalyser b/Master/texmf-dist/scripts/texloganalyser/texloganalyser index ea4845e48e0..121a9f48907 100755 --- a/Master/texmf-dist/scripts/texloganalyser/texloganalyser +++ b/Master/texmf-dist/scripts/texloganalyser/texloganalyser @@ -38,7 +38,7 @@ use strict; use Getopt::Long; Getopt::Long::Configure ("bundling"); -my $version = "0.10"; +my $version = "0.11"; my $copyright = "2006-2020"; my $opt = { help => '', @@ -132,13 +132,13 @@ sub analyze { # look for boxes warnings if ($opt->{c} and $opt->{o} and $opt->{h}) { if ($line =~ m/\\hbox/ and $line =~ m/Overfull/) { - $line =~ m/^Overfull \\hbox \((\d+\.\d+)pt too wide\) (in paragraph|detected) at lines? ([0-9\-]+)$/; + $line =~ m/^Overfull \\hbox \((\d+\.\d+)pt too wide\) .*$/; $cbox->{$1} = 'Page '.$png.': '.$line; $chead = 'Overfull hboxes classified:'; } } elsif ($opt->{c} and $opt->{u} and $opt->{h}) { if ($line =~ m/\\hbox/ and $line =~ m/Underfull/) { - $line =~ m/^Underfull \\hbox \(badness (\d+)\) (in paragraph|detected) at lines? ([0-9\-]+)$/; + $line =~ m/^Underfull \\hbox \(badness (\d+)\) .*$/; $cbox->{$1} = 'Page '.$png.': '.$line; $chead = 'Underfull hboxes classified:'; } @@ -385,6 +385,8 @@ Paulo Ney de Souza had the idea of -c option to better handle hboxes, March 2020 =over +=item v0.11: bug fix for -c option (regexp was too specific) + =item v0.10: added option -c, to classify boxes warnings by size (Paulo Ney de Souza's idea). =item v0.9: added option --last, if log file contains several compilations (Akim Demaille's patch). -- cgit v1.2.3