gbranden pushed a commit to branch branden-2023-04-07
in repository groff.
commit 3f8ce39861ed302cea800b7aae9322877b97fee5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 5 20:05:30 2023 -0500
tmac/tests/s_PN-works.sh: Report output.
...and revise code style to follow more recent test script conventions.
---
tmac/tests/s_PN-works.sh | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/tmac/tests/s_PN-works.sh b/tmac/tests/s_PN-works.sh
index 1c726342a..ab95f7967 100755
--- a/tmac/tests/s_PN-works.sh
+++ b/tmac/tests/s_PN-works.sh
@@ -24,14 +24,12 @@ groff="${abs_top_builddir:-.}/test-groff"
#
# Ensure retention of superfluous but fossilized register PN.
-EXAMPLE=\
-'.bp 2
+input='.bp 2
.LP
-This is page \n[PN].
-'
+This is page \n[PN].'
-printf "%s" "$EXAMPLE" \
- | "$groff" -Tascii -P-cbou -ms \
- | grep -Fqx 'This is page 2.'
+output=$(printf "%s\n" "$input" | "$groff" -ms -Tascii -P-cbou)
+echo "$output"
+echo "$output" | grep -Fqx 'This is page 2.'
# vim:set ai et sw=4 ts=4 tw=72:
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit