bug-groff
[Top][All Lists]
Advanced

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

[bug #60388] [PATCH] contrib/mm/m.tmac: quote the argument of "misc@toup


From: Bjarni Ingi Gislason
Subject: [bug #60388] [PATCH] contrib/mm/m.tmac: quote the argument of "misc@toupper" in macro "let@print-head"
Date: Tue, 13 Apr 2021 18:21:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?60388>

                 Summary: [PATCH] contrib/mm/m.tmac: quote the argument of
"misc@toupper" in  macro "let@print-head"
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Tue 13 Apr 2021 10:21:53 PM UTC
                Category: Macro - mm
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

>From 4bd076b93f04bfbeab98f6bc788b33f8fe47063c Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Tue, 13 Apr 2021 22:17:12 +0000
Subject: [PATCH] contrib/mm/m.tmac: quote the argument of "misc@toupper" in
 macro "let@print-head"

  The macro "misc@toupper" uses "$1" for its letter-case transformation.

  Solves a part of bug #60373, "The subject line shows only the first
word;".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 contrib/mm/m.tmac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index ec7b1912..bc9dcddf 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3486,7 +3486,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
 .if d let*lo-SJ \{\
 .      ie '\\*[let*type]'SP' \{\
 .              sp 2
-.              misc@toupper \\*[let*lo-SJ]
+.              misc@toupper "\\*[let*lo-SJ]"
 .              sp
 .      \}
 .      el \{\
-- 
2.30.2






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60388>

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




reply via email to

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