diff options
Diffstat (limited to 'regex.patch')
-rw-r--r-- | regex.patch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/regex.patch b/regex.patch index e99c4a2c5b29..7f3791927e4a 100644 --- a/regex.patch +++ b/regex.patch @@ -1,11 +1,13 @@ ---- a/muttprint 2015-07-21 11:18:04.219578426 +1200 -+++ b/muttprint 2015-07-21 11:18:53.906243779 +1200 -@@ -1635,7 +1635,7 @@ +--- 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+)}}/; -+ ($numberOfPages) = /\\newlabel\{LastPage}\{\{}\{(\d+)}}/; ++ if ( /\\newlabel\{LastPage}\{\{}\{(\d+)}}/ ) { ++ $numberOfPages = $1; ++ } } close AUX or fatalError "Could not close $auxfile:\n$!"; |