gbranden pushed a commit to branch master
in repository groff.
commit ead92e7025e4bfdff0b92d0cc4662b9c472dfa3c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jun 30 16:25:19 2024 -0500
[mm]: Fix spurious diagnostic message.
* contrib/mm/m.tmac (LB): Don't throw an overlong mark warning when the
line is to be broken after the mark, as in `BVL` lists.
Fixes problem introduced by me in commit e0332c122e, 14 June.
$ cat ATTIC/BVL.mm
.P
This is an
.I mm
document.
.BVL
.LI "a very long mark"
This is a list item.
.LE
$ nroff -z -mm ATTIC/BVL.mm
m.tmac:ATTIC/BVL.mm:6: warning: LI: overlong mark 'a very long mark'
---
contrib/mm/ChangeLog | 5 +++++
contrib/mm/m.tmac | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index bc695f8f3..196d68b09 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-30 G. Branden Robinson <[email protected]>
+
+ * m.tmac (LB): Don't throw an overlong mark warning when the
+ line is to be broken after the mark, as in `BVL` lists.
+
2024-06-30 G. Branden Robinson <[email protected]>
* groff_mm.7.man (Macros) <LB>: Document behavior when fourth
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index c87415332..61ad48a76 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2383,7 +2383,7 @@ ML, RL, VL, or LB first
.nr li*c-pad \\n[li*pad]
.\"
.\" determine where the text begins
-.if \w'\\*[li*c-mark]'>\\n[li*tind] \{\
+.if (\\n[li*type]>=0)&(\w'\\*[li*c-mark]'>\\n[li*tind]) \{\
. @warning \\$0: overlong mark '\\*[li*c-mark]'
. nr li*c-pad 2n \" force item/mark separation
.\}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit