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/


Reply via email to