gbranden pushed a commit to branch master in repository groff. commit 1ed1721303bebb7f4e57f1d9dcb006ba3866143d Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Sun Jul 20 04:52:37 2025 -0500
tmac/tests/an_PD-restores-spacing.sh: Tweak. Improve test ergonomics. Enhance readability of *roff input and annotate the expected output. --- tmac/tests/an_PD-restores-spacing.sh | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/tmac/tests/an_PD-restores-spacing.sh b/tmac/tests/an_PD-restores-spacing.sh index 6f46f6156..bfe9aa391 100755 --- a/tmac/tests/an_PD-restores-spacing.sh +++ b/tmac/tests/an_PD-restores-spacing.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2024 Free Software Foundation, Inc. +# Copyright (C) 2025 Free Software Foundation, Inc. # # This file is part of groff. # @@ -22,7 +22,8 @@ groff="${abs_top_builddir:-.}/test-groff" # Regression-test Savannah #64267. -input='.TH foo 1 2024-03-15 "groff test suite" +input='. +.TH foo 1 2024-03-15 "groff test suite" .SH Name foo \- frobnicate a bar .SH Monsters @@ -39,9 +40,29 @@ troll .P .PD \" inexpert page author did not put this _before_ the `P` call .SH Treasure -There is a lot of it.' +There is a lot of it. +.' -output=$(printf "%s\n" "$input" | "$groff" -man -Tascii -P-cbou) +# Expected output: +# +# foo(1) General Commands Manual foo(1) +# +# Name +# foo - frobnicate a bar +# +# Monsters +# In this game reminiscent of rogue(6), you can expect to encounter +# the following opponents in increasing order of menace. +# B bat +# T troll +# +# Treasure +# There is a lot of it. +# +# groff test suite 2024-03-15 foo(1) + +output=$(printf "%s\n" "$input" \ + | "$groff" -rLL=70n -man -Tascii -P-cbou) echo "$output" echo "$output" | sed -n -e '/troll/{' \ -e 'n;/^$/{' \ _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit