[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60389] [PATCH] contrib/mm/m.tmac: omit a comma, if macro "let@sg_S
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #60389] [PATCH] contrib/mm/m.tmac: omit a comma, if macro "let@sg_SP" is called with one argument |
Date: |
Tue, 13 Apr 2021 20:55:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #1, bug #60389 (project groff):
The patch is wrong as "let@sg_SP" gets a least two arguments (both
quoted).
So the size of the second argument must be tested.
diff -dpru --unidirectional-new-file groff/contrib/mm/m.tmac
new-groff/contrib/mm/m.tmac
--- groff/contrib/mm/m.tmac 2021-04-13 23:59:34.000000000 +0000
+++ new-groff/contrib/mm/m.tmac 2021-04-14 00:03:14.000000000 +0000
@@ -3428,7 +3428,12 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[
.nf
.if \\$3=1 .sp
.sp
-.misc@toupper "\\$1, \\$2"
+.ie '\\$2'' \{\
+. misc@toupper "\\$1"
+.\}
+.el \{
+. misc@toupper "\\$1, \\$2"
+.\}
.if \\$4 .sp
.if \w'\\$5'&\\$4 \\$5
.fi
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60389>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/