bug-groff
[Top][All Lists]
Advanced

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

[bug #63377] [mdoc] .Nm emits warning instead of content


From: G. Branden Robinson
Subject: [bug #63377] [mdoc] .Nm emits warning instead of content
Date: Thu, 17 Nov 2022 20:51:20 -0500 (EST)

Follow-up Comment #3, bug #63377 (project groff):

Hi John,

Here's a patch.


diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index f126731ce..5facfddec 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -1041,8 +1041,11 @@
 .    ds doc-macro-name Nm
 .    ie \n[.$] \{\
 .      \" Handle '.Nm ...' in "Name" section: don't use a special font.
-.      ie \n[doc-in-name-section] \
+.      ie \n[doc-in-name-section] \{\
+.        ie "\*[doc-topic-name]"" \
+.          ds doc-topic-name "\$1
 .        No \$@
+.      \}
 .      el \
 .        doc-parse-args \$@
 .    \}
@@ -1101,8 +1104,6 @@
 .          \}
 .          ti -\n[doc-indent-synopsis]u
 .      \}\}
-.      if "\*[doc-topic-name]"" \
-.        ds doc-topic-name "\*[doc-arg\n[doc-arg-ptr]]
 .
 .      nop \*[doc-Nm-font]\c
 .    \}



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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