gbranden pushed a commit to branch master
in repository groff.
commit 96008693bd5424ea6665ab7e8d1f39547eda8d11
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Mar 28 14:54:58 2026 -0500
[ms]: Align test script w/ recent groff practice.
---
tmac/tests/s_TC-works-with-percent-in-custom-titles.sh | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
b/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
index 65730782c..8aabc9da2 100755
--- a/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
+++ b/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
@@ -25,8 +25,8 @@ groff="${abs_top_builddir:-.}/test-groff"
# Ensure that .TC succeeds in assigning the 'i' format to the page
# number register when '%' is used in a custom header or footer.
-EXAMPLE=\
-'.OH ##%##
+input='.
+.OH ##%##
.NH 1
Foo
.XS
@@ -35,18 +35,19 @@ Foo
.LP
Bar.
.TC
-'
+.'
-OUTPUT=$(echo "$EXAMPLE" | "$groff" -Tascii -P-cbou -ms)
+output=$(echo "$input" | "$groff" -Tascii -P-cbou -ms)
# Strip blank lines from the output first; all we care about for this
# test is the presence, adjacency, and ordering of non-blank lines.
-FILTERED_OUTPUT=$(echo "$OUTPUT" \
+output=$(echo "$output" \
| sed '/^$/d' \
| sed -n '/i/{
N;/Table of Contents/{
N;/Foo[. ][. ]*1/p;
};
}')
-test -n "$FILTERED_OUTPUT"
+echo "$output"
+test -n "$output"
-# vim:set ai et sw=4 ts=4 tw=72:
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit