gbranden pushed a commit to branch master
in repository groff.

commit 5ba7dbad015d9ae0fe04d86537093620f8703a42
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri May 2 22:33:24 2025 -0500

    [mdoc]: Fix Savannah #65101 (`Nm` boldness).
    
    * tmac/doc.tmac (Nm): Stop suppressing use of bold (or typeface
      configured via the `doc-Nm-font` string) when rendering occurrence in
      the "Name" section of a document.
    
    Fixes <https://savannah.gnu.org/bugs/?65101>.  Thanks to наб for the
    report.  Reverts a change I made in groff 1.23.0.
---
 ChangeLog     | 9 +++++++++
 tmac/doc.tmac | 8 +++-----
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 64b20af5b..839217e0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-05-02  G. Branden Robinson <[email protected]>
+
+       * tmac/doc.tmac (Nm): Stop suppressing use of bold (or typeface
+       configured via the `doc-Nm-font` string) when rendering
+       occurrence in the "Name" section of a document.
+
+       Fixes <https://savannah.gnu.org/bugs/?65101>.  Thanks to наб for
+       the report.  Reverts a change I made in groff 1.23.0.
+
 2025-04-30  G. Branden Robinson <[email protected]>
 
        [libgroff]: Drop dead code.
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index f30f21503..e368784b1 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -1199,14 +1199,12 @@
 .  if !\n[doc-arg-count] \{\
 .    ds doc-macro-name Nm
 .    ie \n[.$] \{\
-.      \" Handle '.Nm ...' in "Name" section: don't use a special font.
-.      ie \n[doc-in-name-section] \{\
+.      \" Handle '.Nm ...' in "Name" section.
+.      if \n[doc-in-name-section] \{\
 .        if "\*[doc-topic-name]"" \
 .          ds doc-topic-name "\$1\"
-.        No \$@
 .      \}
-.      el \
-.        doc-parse-args \$@
+.      doc-parse-args \$@
 .    \}
 .    el \{\
 .      ie "\*[doc-topic-name]"" \

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to