contrib/muttprint/regex.patch

14 lines
441 B
Diff

--- 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$!";