deri pushed a commit to branch master
in repository groff.

commit 8d9650846211c021b3ee13121ca4587579ed0a4d
Author: Deri James <[email protected]>
AuthorDate: Mon Oct 12 12:58:51 2026 +0100

    [pdfmom]: Fix Savannah #68765.
    
    * src/utils/pdfmom/pdfmom.pl: Remove new-line from end of
    pdfroff command.
    
    Fixes <https://savannah.gnu.org/bugs/?68765> Thanks to Jakub
    Kulik for the report.
---
 ChangeLog                  | 10 ++++++++++
 src/utils/pdfmom/pdfmom.pl |  1 +
 2 files changed, 11 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 2d59f5964..5fafb7bd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-09-23  Deri James  <[email protected]>
+
+       [pdfmom]: Fix Savannah #68765.
+
+       * src/utils/pdfmom/pdfmom.pl: Remove new-line from end of
+       pdfroff command.
+
+       Fixes <https://savannah.gnu.org/bugs/?68765> Thanks to Jakub
+       Kulik for the report.
+
 2026-08-06  Bruno Haible <[email protected]>
 
        * doc/doc.am ($(DOC_LINE_LAYOUT_EPS)): Remove the %%CreationDate
diff --git a/src/utils/pdfmom/pdfmom.pl b/src/utils/pdfmom/pdfmom.pl
index 34964e508..487943574 100644
--- a/src/utils/pdfmom/pdfmom.pl
+++ b/src/utils/pdfmom/pdfmom.pl
@@ -218,6 +218,7 @@ if ($dev eq 'pdf')
 elsif ($dev eq 'ps')
 {
         my $pdfroff=`which pdfroff 2>/dev/null`;
+        chomp($pdfroff);
         abort("Since version 1.24.0 of groff, the pdfmark files (including 
pdfroff)\nare no longer included with groff. They can be seprately downloaded 
from:-\n\nhttps://savannah.nongnu.org/projects/groff-pdfmark\n\n";) if !$pdfroff;
        $waitstatus = system("$groff -Tpdf -dLABEL.REFS=1 $mom -z $cmdstring 
2>&1 | LC_ALL=C grep '^\\. *ds' | $pdfroff -mpdfmark $mom --no-toc - $preconv 
$cmdstring");
        abort(autopsy($?)) unless $waitstatus == 0;

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to