gbranden pushed a commit to branch master in repository groff. commit 98cba6b24cbdf831780ff9989604876300a732ac Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Fri Apr 7 19:14:23 2023 -0500
[ms]: Regression-test Savannah #64013. * tmac/tests/s_EQ-handles-empty-first-arg.sh: Do it. * tmac/tmac.am (tmac_TESTS): Run test. Test fails at this commit. --- ChangeLog | 7 ++++++ tmac/tests/s_EQ-handles-empty-first-arg.sh | 36 ++++++++++++++++++++++++++++++ tmac/tmac.am | 1 + 3 files changed, 44 insertions(+) diff --git a/ChangeLog b/ChangeLog index 69854a601..9877c7063 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-04-07 G. Branden Robinson <g.branden.robin...@gmail.com> + + [ms]: Regression-test Savannah #64013. + + * tmac/tests/s_EQ-handles-empty-first-arg.sh: Do it. + * tmac/tmac.am (tmac_TESTS): Run test. + 2023-04-05 G. Branden Robinson <g.branden.robin...@gmail.com> [ms]: Fix Savannah #64005. diff --git a/tmac/tests/s_EQ-handles-empty-first-arg.sh b/tmac/tests/s_EQ-handles-empty-first-arg.sh new file mode 100755 index 000000000..29fd02066 --- /dev/null +++ b/tmac/tests/s_EQ-handles-empty-first-arg.sh @@ -0,0 +1,36 @@ +#!/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 #64013. +# +# Render an equation label even if the alignment argument is empty. + +input='.LP +.EQ "" (1) +x + y = z +.EN' + +output=$(printf "%s\n" "$input" | "$groff" -e -ms -Tascii -P-cbou) +echo "$output" +echo "$output" | grep -qx ' *x+y=z *(1)' + +# vim:set ai et sw=4 ts=4 tw=72: diff --git a/tmac/tmac.am b/tmac/tmac.am index 0476ff640..16346763a 100644 --- a/tmac/tmac.am +++ b/tmac/tmac.am @@ -224,6 +224,7 @@ tmac_TESTS = \ tmac/tests/localization-works.sh \ tmac/tests/pdfpic_does-not-choke-on-bad-pdfinfo-output.sh \ tmac/tests/pdfpic_falls-back-to-PSPIC.sh \ + tmac/tests/s_EQ-handles-empty-first-arg.sh \ tmac/tests/s_IP-indents-using-paragraph-type-size.sh \ tmac/tests/s_IP-respects-inter-sentence-space-in-tags.sh \ tmac/tests/s_PN-works.sh \ _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit