summarylogtreecommitdiffstats
path: root/regex.patch
blob: 7f3791927e4a2eb426f667ba9d9e8cb823618d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/muttprint	2019-12-12 17:55:22.386940568 +1300
+++ b/muttprint	2019-12-12 17:52:26.477281840 +1300
@@ -1635,7 +1635,9 @@
 	open (AUX, "$auxfile") or fatalError "Could not open $auxfile:\n$!";
 	
 	while (<AUX>) {
-		($numberOfPages) = /\\newlabel{LastPage}{{}{(\d+)}}/;
+        if ( /\\newlabel\{LastPage}\{\{}\{(\d+)}}/ ) {
+           $numberOfPages = $1;
+        }
 	}
 	
 	close AUX or fatalError "Could not close $auxfile:\n$!";