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 <[email protected]>
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 <[email protected]>
---
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/