gbranden pushed a commit to branch master
in repository groff.

commit 5e4d39536d56c25410c18374c10ba1141dba0233
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Dec 12 21:17:15 2025 -0600

    [mm]: Fix Savannah #67811.
    
    * contrib/mm/m.tmac (B2): In nroff mode, space by one vee before and
      after interpolating the `box*div` boxed text diversion.  This prevents
      the box lines and text from overprinting.
    
    Fixes <https://savannah.gnu.org/bugs/?67811>.
---
 contrib/mm/ChangeLog | 8 ++++++++
 contrib/mm/m.tmac    | 3 +++
 2 files changed, 11 insertions(+)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index d0cc9a159..42eb936a1 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,11 @@
+2025-12-12  G. Branden Robinson <[email protected]>
+
+       * m.tmac (B2): In nroff mode, space by one vee before and after
+       interpolating the `box*div` boxed text diversion.  This prevents
+       the box lines and text from overprinting.
+
+       Fixes <https://savannah.gnu.org/bugs/?67811>.
+
 2025-12-12  G. Branden Robinson <[email protected]>
 
        * m.tmac (B1): In the environment we set up for boxed text,
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 37e209d06..27333994c 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3211,7 +3211,10 @@ exceeds depth of nested lists (\\n[li*lvl])
 .de B2
 .br
 .if !\\n[box*ll] .@error \\$0: no corresponding B1
+.\" In nroff mode, make room for the horizontal rules taking up 1v each.
+.if n .sp
 .debug@di
+.if n .sp
 .nr box*height \\n[dn]
 .ne \\n[dn]u+1v
 .ll \\n[box*ll]u

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

Reply via email to