URL:
<https://savannah.gnu.org/bugs/?60389>
Summary: [PATCH] contrib/mm/m.tmac: omit a comma, if macro
"let@sg_SP" is called with one argument
Project: GNU troff
Submitted by: bjarniig
Submitted on: Tue 13 Apr 2021 11:03:32 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 a9538e1a7089f243dfd5ca9da220577c4f8e5354 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <[email protected]>
Date: Tue, 13 Apr 2021 22:59:59 +0000
Subject: [PATCH] contrib/mm/m.tmac: omit a comma, if macro "let@sg_SP" is
called with one argument
This fixes a part of bug #60373, "and the writer's name at the
bottom is followed by a trailing comma."
Signed-off-by: Bjarni Ingi Gislason <[email protected]>
---
contrib/mm/m.tmac | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index bc9dcddf..40a5f6a4 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3428,7 +3428,12 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
.nf
.if \\$3=1 .sp
.sp
-.misc@toupper "\\$1, \\$2"
+.ie \\n[.$]=1 \{\
+. misc@toupper "\\$1"
+.\}
+.el \{\
+. misc@toupper "\\$1, \\$2"
+.\}
.if \\$4 .sp
.if \w'\\$5'&\\$4 \\$5
.fi
--
2.30.2
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60389>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/