gbranden pushed a commit to branch branden-2023-07-05 in repository groff. commit fcc7fb9eaf9f9c65825b7a3952a69bc0d8498ade Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Thu May 25 12:35:56 2023 -0500
[mm]: Regression-test Savannah #63695. * contrib/mm/tests/LT-should-space-after-inside-address.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 + .../tests/LT-should-space-after-inside-address.sh | 51 ++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog index 140d7c9b9..717aae4ab 100644 --- a/contrib/mm/ChangeLog +++ b/contrib/mm/ChangeLog @@ -1,3 +1,10 @@ +2023-05-25 G. Branden Robinson <g.branden.robin...@gmail.com> + + Regression-test Savannah #63695. + + * tests/LT-should-space-after-inside-address.sh: Do it. + * mm.am (mm_TESTS): Run test. + 2023-05-25 G. Branden Robinson <g.branden.robin...@gmail.com> Accept a second argument to `HU`. diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am index 6947c6f4e..690b268c8 100644 --- a/contrib/mm/mm.am +++ b/contrib/mm/mm.am @@ -61,6 +61,7 @@ EXTRA_DIST += \ contrib/mm/mmroff.pl mm_TESTS = \ + contrib/mm/tests/LT-should-space-after-inside-address.sh \ contrib/mm/tests/LT_SP_AU_without_AT_works.sh \ contrib/mm/tests/LT_SP_multi-word_LO_SJ_works.sh \ contrib/mm/tests/MT-1-reports-all-TM-numbers.sh \ diff --git a/contrib/mm/tests/LT-should-space-after-inside-address.sh b/contrib/mm/tests/LT-should-space-after-inside-address.sh new file mode 100755 index 000000000..17a80d0d3 --- /dev/null +++ b/contrib/mm/tests/LT-should-space-after-inside-address.sh @@ -0,0 +1,51 @@ +#!/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 #63695. +# +# One vertical line of space should follow the letter header. + +input='.ND "17 May 2023" +.WA "Epi G. Netic" "Head of Research" +123 Main Street +Anytown, ST 10101 +.WE +.IA "Rufus T. Arbogast" "Guru" +456 Elsewhere Avenue +Nirvana, PA 20406 +.IE +.LT +.P +We have a research leak! +.FC +.SG +.NS +sundry careless people +.NE' + +output=$(echo "$input" | "$groff" -mm -Tascii -P-cbou) +echo "$output" +echo "$output" \ + | sed -n -e '/.*Nirvana/{' -e 'n;/^$/{' -e 'n;p;' -e '}' -e '}' \ + | grep -q leak + +# vim:set ai et sw=4 ts=4 tw=72: _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit