bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #53271] m4/groff.m4: improve search for paper size on machines with


From: Bjarni Ingi Gislason
Subject: [bug #53271] m4/groff.m4: improve search for paper size on machines without domain names
Date: Fri, 27 Apr 2018 23:03:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #3, bug #53271 (project groff):


>From b079ea6d099b0ea93eacb5ca113a67c0d02e3513 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Sat, 28 Apr 2018 01:39:12 +0000
Subject: [PATCH] m4/groff.m4: Find '[aA]4' anywhere in the 'papersize' line

  In the Debian distribution the "a4" is not found, as it is not the first
argument of the "papersize" line.

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 m4/groff.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/groff.m4 b/m4/groff.m4
index f749b479..f846a802 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -796,7 +796,7 @@ AC_DEFUN([GROFF_PAGE],
      if test -n "$descfile"; then
        if grep ['^paperlength[  ]\+841890'] $descfile >/dev/null 2>&1; then
         PAGE=A4
-       elif grep ['^papersize[  ]\+[aA]4'] $descfile >/dev/null 2>&1; then
+       elif grep ['^papersize.*[        ]\+[aA]4'] $descfile > /dev/null 2>&1;
then
         PAGE=A4
        fi
      fi
-- 
2.17.0



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53271>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]