diff options
author | Jason Ryan | 2019-12-12 18:00:59 +1300 |
---|---|---|
committer | Jason Ryan | 2019-12-12 18:00:59 +1300 |
commit | 57fd06235aae2731dd096dee7a8e0ada8d109839 (patch) | |
tree | 9f43fff0828bd3a346c4c8a6a424c164db83af83 /regex.patch | |
parent | 56dccff9eb572757aa52c907cd7fe7331c67a16c (diff) | |
download | aur-57fd06235aae2731dd096dee7a8e0ada8d109839.tar.gz |
Applied hak's papersave patch
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$!"; |