Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1129374
| From | Jeff <jffry@posteo.net> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1026205: Unpaper errors for every scanned page |
| Date | 2022-12-19 10:40 +0100 |
| Message-ID | <FEkMN-bGQX-1@gated-at.bofh.it> (permalink) |
| References | <FDfPb-b1ZW-5@gated-at.bofh.it> <FDm4h-b5DG-5@gated-at.bofh.it> <FDBwl-bfaX-1@gated-at.bofh.it> <FDfPb-b1ZW-5@gated-at.bofh.it> <FDBwl-bfaX-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 17/12/2022 10:00, martin f krafft wrote:
> Regarding the following, written by "Jeff" on 2022-12-16 at 16:44 Uhr +0000:
>
> I think that this is this bug in unpaper:
>
> https://github.com/unpaper/unpaper/issues/113
> <https://github.com/unpaper/unpaper/issues/113>
>
> Okay, but gscan2pdf makes it an error, and I do wonder if it's possible
> to hide them…
Yup. This patch fixes things:
diff --git a/lib/Gscan2pdf/Dialog/MultipleMessage.pm
b/lib/Gscan2pdf/Dialog/MultipleMessage.pm
index f74779b1..862c7c50 100644
--- a/lib/Gscan2pdf/Dialog/MultipleMessage.pm
+++ b/lib/Gscan2pdf/Dialog/MultipleMessage.pm
@@ -23,6 +23,10 @@ my $INTREGEX = qr{^(.*) # start of message
\b[[:digit:]]+\b # integer
(.*)$ # rest of message
}xsm;
+my $TEMPFILEREGEX = qr{^(.*) # start of message
+ gscan2pdf[-][[:alnum:]]+/[[:alnum:]]+ # temp filename
+ (.*)$ # rest of message
+ }xsm;
sub INIT_INSTANCE {
my $self = shift;
@@ -266,6 +270,9 @@ sub munge_message {
sub filter_message {
my ($message) = @_;
$message =~ s/\s+$//xsm;
+ while ( $message =~ /$TEMPFILEREGEX/xsmo ) {
+ $message =~ s/$TEMPFILEREGEX/$1%%t$2/xsmo;
+ }
while ( $message =~ /$HEXREGEX/xsmo ) {
$message =~ s/$HEXREGEX/$1%%x$2/xsmo;
}
It will be in the next release.
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1026205: Unpaper errors for every scanned page martin f krafft <madduck@debian.org> - 2022-12-16 11:10 +0100
Bug#1026205: Unpaper errors for every scanned page Jeff <jffry@posteo.net> - 2022-12-16 17:50 +0100
Bug#1026205: Unpaper errors for every scanned page martin f krafft <madduck@debian.org> - 2022-12-17 10:20 +0100
Bug#1026205: Unpaper errors for every scanned page Jeff <jffry@posteo.net> - 2022-12-19 10:40 +0100
Bug#1026205: Unpaper errors for every scanned page martin f krafft <madduck@debian.org> - 2022-12-19 14:00 +0100
Bug#1026205: Unpaper errors for every scanned page martin f krafft <madduck@debian.org> - 2022-12-19 14:10 +0100
Bug#1026205: Unpaper errors for every scanned page Jeff <jffry@posteo.net> - 2022-12-19 17:00 +0100
csiph-web