Hi Peter, At 2024-02-21T13:42:58-0500, Peter Schaffter wrote: > > It looks idiomatic enough to me. You can expect this change in my > > next push. Thanks! > > Deri sent me a patch this morning. I've applied and tested it. > Fixes the issue. If you want, I can push the change.
Sure! Here's what I had queued up; I offer it mainly for the changelog. commit 69f4eba10487886681dba206b8e7071394cd3445 Author: Tadziu Hoffmann <hoffm...@usm.uni-muenchen.de> Date: Wed Feb 21 01:27:43 2024 +0100 [pdfmom]: Improve `-k`, `-K` option handling. * contrib/mom/pdfmom.pl: Accrete `-k` and `-K` options to groff instead of letting one clobber the other. See message at <https://lists.gnu.org/archive/html/groff/2024-02/msg00059.html> and follow-ups. diff --git a/contrib/mom/ChangeLog b/contrib/mom/ChangeLog index 79b8cb68b..8389cd65a 100644 --- a/contrib/mom/ChangeLog +++ b/contrib/mom/ChangeLog @@ -1,3 +1,12 @@ +2024-02-21 Tadziu Hoffmann <hoffm...@usm.uni-muenchen.de> + + * pdfmom.pl: Accrete `-k` and `-K` options to groff instead of + letting one clobber the other. + + See message at + <https://lists.gnu.org/archive/html/groff/2024-02/msg00059.html> + and follow-ups. + 2024-01-31 G. Branden Robinson <g.branden.robin...@gmail.com> * examples/test-mom.sh.in: Fix code style/diagnostic nits. diff --git a/src/devices/gropdf/pdfmom.pl b/src/devices/gropdf/pdfmom.pl index 1c24d85b9..25c646cfc 100644 --- a/src/devices/gropdf/pdfmom.pl +++ b/src/devices/gropdf/pdfmom.pl @@ -68,18 +68,18 @@ while (my $c=shift) { if (length($c) > 2) { - $preconv=$c; + $preconv.=' '.$c; } else { - $preconv=$c; + $preconv.=' '.$c; $preconv.=shift; } next; } elsif (substr($c,0,2) eq '-k') { - $preconv=$c; + $preconv.=' '.$c; next; } elsif ($c eq '-Z') Regards, Branden
signature.asc
Description: PGP signature