gbranden pushed a commit to branch master
in repository groff.
commit d521a8a32a0400286c73eda0a7d3b77c47b259b3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Apr 12 07:34:43 2026 -0500
[groff]: Favor regex over fragile space sequence.
...in test script.
---
src/roff/groff/tests/linetabs-request-works.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/roff/groff/tests/linetabs-request-works.sh
b/src/roff/groff/tests/linetabs-request-works.sh
index ae7dfefeb..67f4d92c0 100755
--- a/src/roff/groff/tests/linetabs-request-works.sh
+++ b/src/roff/groff/tests/linetabs-request-works.sh
@@ -50,10 +50,10 @@ output=$(printf '%s\n' "$input" | "$groff" -T ascii)
echo "$output"
echo "checking output when line tabs disabled" >&2
-echo "$output" | grep -qx "A B C" || wail
+echo "$output" | grep -Eqx "A {9}B {9}C" || wail
echo "checking output when line tabs enabled" >&2
-echo "$output" | grep -qx "D E F" || wail
+echo "$output" | grep -Eqx "D {9}E {19}F" || wail
test -z "$fail"
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit