bug-groff
[Top][All Lists]
Advanced

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

[bug #54539] [PATCH] hdmisc.tmac-u: Avoid a warning about a tab characte


From: Bjarni Ingi Gislason
Subject: [bug #54539] [PATCH] hdmisc.tmac-u: Avoid a warning about a tab character in this source
Date: Sun, 19 Aug 2018 16:39:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?54539>

                 Summary: [PATCH] hdmisc.tmac-u: Avoid a warning about a tab
character in this  source
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Sun 19 Aug 2018 08:39:33 PM UTC
                Category: Macro - others
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:


>From 6d2b89a6844382ea162795b93de7c86cfc9406ba Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <address@hidden>
Date: Sun, 19 Aug 2018 20:29:06 +0000
Subject: [PATCH] hdmisc.tmac-u: Avoid a warning about a tab character in this
 source

  An example of the warnings:

../contrib/hdtbl/hdmisc.tmac-u:306: backtrace: macro 't*DI'
../contrib/hdtbl/hdtbl.tmac:477: backtrace: macro 'ETB'
../contrib/hdtbl/examples/common.roff:50: backtrace: macro 'H'
troff: ../contrib/hdtbl/examples/chess_board.roff:45: warning: tab character
in unquoted macro argument

Signed-off-by: Bjarni Ingi Gislason <address@hidden>
---
 contrib/hdtbl/hdmisc.tmac-u | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/contrib/hdtbl/hdmisc.tmac-u b/contrib/hdtbl/hdmisc.tmac-u
index b001561f..ebbbddb3 100644
--- a/contrib/hdtbl/hdmisc.tmac-u
+++ b/contrib/hdtbl/hdmisc.tmac-u
@@ -303,7 +303,10 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>.
 .de t*DI
 .  nr * \\n[.u]
 .  nf          \"      diversion is already formatted - output it unchanged
-.  \\$1                \"      output the diversion ...
+.\" Avoid getting a tab character added to the argument, otherwise
+.\" (with groff -ww):
+.\" troff: ... warning: tab character in unquoted macro argument
+.  \\$1\"      \"      output the diversion ...
 .  rm \\$1     \"      ... and remove it
 .  if \\n[*] \
 .    fi                \"      reactivate formatting
-- 
2.18.0






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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