deri pushed a commit to branch master
in repository groff.

commit d4e244ecb389a854f7aa679124a473af1f263008
Author: Deri James <[email protected]>
AuthorDate: Fri Feb 20 23:24:10 2026 +0000

    * src/devices/gropdf/gropdf.pl: Test for null string rather
    than 'false' (which includes "0").
    
    Fixes <https://savannah.gnu.org/bugs/?68077>. Thanks to
    G. Branden Robinson for report.
---
 ChangeLog                    | 8 ++++++++
 src/devices/gropdf/gropdf.pl | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 76913e1ce..769bbe9b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-02-20  Deri James  <[email protected]>
+
+       * src/devices/gropdf/gropdf.pl: Test for null string rather
+       than 'false' (which includes "0").
+
+       Fixes <https://savannah.gnu.org/bugs/?68077>. Thanks to
+       G. Branden Robinson for report.
+
 2026-02-20  Deri James  <[email protected]>
 
        Support a build scenario where Ghostscript is unavailable but
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index 95c0cebda..f519a5356 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -657,7 +657,7 @@ while (<>)
        }
 
        $lin=~s/^\s+//;
-       next if !$lin;
+       next if $lin eq '';
 #      $lin=~s/\s#.*?$//;      # remove comment
        $stream.="\% $_\n" if $debug;
 

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

Reply via email to