gbranden pushed a commit to branch branden-2023-07-05 in repository groff. commit 7839e839f8e3755f9fa667e01bf2e316a182ea23 Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Wed Apr 5 19:08:03 2023 -0500
[ms]: Regression-test Savannah #64005. * tmac/tests/s_honor-page-break-after-display.sh: Do it. * tmac/tmac.am (tmac_TESTS): Run test. Test fails at this commit. --- ChangeLog | 7 +++++ tmac/tests/s_honor-page-break-after-display.sh | 40 ++++++++++++++++++++++++++ tmac/tmac.am | 1 + 3 files changed, 48 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5938c365c..dce8534f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-04-05 G. Branden Robinson <g.branden.robin...@gmail.com> + + [ms]: Regression-test Savannah #64005. + + * tmac/tests/s_honor-page-break-after-display.sh: Do it. + * tmac/tmac.am (tmac_TESTS): Run test. + 2023-03-24 G. Branden Robinson <g.branden.robin...@gmail.com> * tmac/mdoc/doc-common (Sh): Restore hyphenation configured with diff --git a/tmac/tests/s_honor-page-break-after-display.sh b/tmac/tests/s_honor-page-break-after-display.sh new file mode 100755 index 000000000..c50918c86 --- /dev/null +++ b/tmac/tests/s_honor-page-break-after-display.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Copyright (C) 2023 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 #64005. + +input='.pl 18v +.LP +The first page is \n%. +.DS +display +.DE +.bp +.LP +The second page is \n%. +.pl \n(nlu' + +output=$(printf '%s\n' "$input" | "$groff" -Tascii -P-cbou -ms) +echo "$output" +echo "$output" | grep -Fqx 'The second page is 2.' + +# vim:set ai et sw=4 ts=4 tw=72: diff --git a/tmac/tmac.am b/tmac/tmac.am index 3b61a7dd8..0476ff640 100644 --- a/tmac/tmac.am +++ b/tmac/tmac.am @@ -232,6 +232,7 @@ tmac_TESTS = \ tmac/tests/s_TC-works-with-percent-in-custom-titles.sh \ tmac/tests/s_XA-literal-no-argument-suppresses-leader.sh \ tmac/tests/s_honor-MINGW-when-two-columns.sh \ + tmac/tests/s_honor-page-break-after-display.sh \ tmac/tests/s_mark-column-start-correctly.sh \ tmac/tests/s_no-excess-space-around-displays.sh \ tmac/tests/s_rejects-too-short-page-lengths.sh _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit