gbranden pushed a commit to branch master
in repository groff.

commit 5705297f1c6d2f3f262a57d44988466c591a3091
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat May 3 00:37:01 2025 -0500

    [mdoc]: Fix Savannah #65702 (save compat mode).
    
    * tmac/doc.tmac: Save and restore AT&T troff compatibility mode, as
      man(7) does.
    
    Fixes <https://savannah.gnu.org/bugs/?65702>.  Thanks to Bjarni Ingi
    Gislason for the report.
---
 ChangeLog     | 8 ++++++++
 tmac/doc.tmac | 5 ++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 839217e0e..44d68c3b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-05-02  G. Branden Robinson <[email protected]>
+
+       * tmac/doc.tmac: Save and restore AT&T troff compatibility mode,
+       as man(7) does.
+
+       Fixes <https://savannah.gnu.org/bugs/?65702>.  Thanks to Bjarni
+       Ingi Gislason for the report.
+
 2025-05-02  G. Branden Robinson <[email protected]>
 
        * tmac/doc.tmac (Nm): Stop suppressing use of bold (or typeface
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index e368784b1..1f1a1900b 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -58,7 +58,7 @@
 .
 .do if d Dd .nx
 .
-.
+.do nr *groff_doc_tmac_C \n[.cp]
 .cp 0
 .
 .\" Macros that are part of the external interface (Dd, Sh, Pp, etc.) or
@@ -7231,6 +7231,9 @@ should this have been '.Em ...'?
 .\" load local modifications
 .mso mdoc.local
 .
+.cp \n[*groff_doc_tmac_C]
+.do rr *groff_doc_tmac_C
+.
 .\" Local Variables:
 .\" mode: nroff
 .\" fill-column: 72

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

Reply via email to