gbranden pushed a commit to branch branden-2023-07-05 in repository groff. commit a048eb86218fb48c886ee5617bd093e1e8876c8c Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Fri Apr 28 06:15:38 2023 -0500
[tbl]: Regression-test Savannah #64122. * src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh: Update input and add check. Test fails at this commit. --- ChangeLog | 8 ++++++++ .../tests/save-and-restore-hyphenation-parameters.sh | 18 +++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8559bfc7e..eb150f1bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2023-04-28 G. Branden Robinson <g.branden.robin...@gmail.com> + + [tbl]: Regression-test Savannah #64122. + + * src/preproc/tbl/tests/\ + save-and-restore-hyphenation-parameters.sh: Update input and add + check. + 2023-04-25 G. Branden Robinson <g.branden.robin...@gmail.com> [troff]: Drop `POPEN_MISSING` preprocessor macro. diff --git a/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh b/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh index f2334b0e2..14b6f283d 100755 --- a/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh +++ b/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2021 Free Software Foundation, Inc. +# Copyright (C) 2021-2023 Free Software Foundation, Inc. # # This file is part of groff. # @@ -34,9 +34,15 @@ wail () { input='.nr LL 78n .hw a-bc-def-ghij-klmno-pqrstu-vwxyz +.hym 2n +.hys 1n .LP +before: .hym=\n[.hym], .hys=\n[.hys] +.br +. Here is a table with hyphenation disabled in its text block. . +. .TS tab(@); L Lx. @@ -48,6 +54,11 @@ abcdefghijklmnopqrstuvwxyz T} .TE . +. +.LP +after: .hym=\n[.hym], .hys=\n[.hys] +.br +. Let us see if hyphenation is enabled again as it should be. abcdefghijklmnopqrstuvwxyz' @@ -61,6 +72,11 @@ echo "$output" | grep '^foo' | grep -- '-$' && wail echo "checking whether hyphenation enabled after table" >&2 echo "$output" | grep -qx 'Let us see.*lmno-' || wail +# Regression-test Savannah #64122. + +echo "checking whether hyphenation margin and spacing preserved" >&2 +echo "$output" | grep -Fqx 'after: .hym=48, .hys=24' || wail + test -z "$fail" # 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