gbranden pushed a commit to branch master
in repository groff.
commit 5027df3c02d1c9e1c257de3ec100bc5df99f7419
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Jun 14 11:29:00 2024 -0500
[mm]: Regression-test Savannah #65843.
* contrib/mm/tests/VL-accommodates-overlong-mark.sh: Do it.
* contrib/mm/mm.am (mm_TESTS): Run test.
Test fails at this commit.
---
contrib/mm/ChangeLog | 7 ++++
contrib/mm/mm.am | 1 +
contrib/mm/tests/VL-accommodates-overlong-mark.sh | 44 +++++++++++++++++++++++
3 files changed, 52 insertions(+)
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index f3ae46281..2540a3a54 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2024-06-14 G. Branden Robinson <[email protected]>
+
+ Regression-test Savannah #65843.
+
+ * tests/VL-accommodates-overlong-mark.sh: Do it.
+ * mm.am (mm_TESTS): Run test.
+
2024-06-14 G. Branden Robinson <[email protected]>
* m.tmac (LI): Throw warning if a list item mark is overlong.
diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am
index d3487bf58..66224aaa5 100644
--- a/contrib/mm/mm.am
+++ b/contrib/mm/mm.am
@@ -67,6 +67,7 @@ mm_TESTS = \
contrib/mm/tests/MT-1-reports-all-TM-numbers.sh \
contrib/mm/tests/MT-5-includes-AT-in-SG.sh \
contrib/mm/tests/P-indentation-works.sh \
+ contrib/mm/tests/VL-accommodates-overlong-mark.sh \
contrib/mm/tests/flush-long-displays-at-end-of-input.sh \
contrib/mm/tests/indexing-works.sh \
contrib/mm/tests/letters-format-correctly.sh \
diff --git a/contrib/mm/tests/VL-accommodates-overlong-mark.sh
b/contrib/mm/tests/VL-accommodates-overlong-mark.sh
new file mode 100755
index 000000000..921a51508
--- /dev/null
+++ b/contrib/mm/tests/VL-accommodates-overlong-mark.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+# Copyright (C) 2024 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your
+# option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+# Regression-test Savannah #65843.
+
+input='.P
+This is an
+.I mm
+document.
+.VL 11 5
+.LI mark
+Item text.
+.LI foo
+Bar.
+.LI "oversized\ bazqux"
+This mark is oversized.
+But it should not overprint.
+.LE'
+
+output=$(echo "$input" | "$groff" -mm -Tascii -P -cbou)
+echo "$output"
+echo "$output" \
+ | grep -q '^ *oversized bazqux This mark is oversized\.'
+
+# vim:set ai et sw=4 ts=4 tw=72:
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit