gbranden pushed a commit to branch master
in repository groff.

commit 5f27004b641175740eeb00976edbdd4a5a339bc6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Nov 21 22:23:05 2026 -0600

    [groff]: Tweak code style of test.
    
    * Use dummy requests in roff input for clarity.
    * Favor printf(1) over echo(1) to ship input through a pipeline.
---
 src/roff/groff/tests/adjustment-works.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/roff/groff/tests/adjustment-works.sh 
b/src/roff/groff/tests/adjustment-works.sh
index df42048c2..908f56d72 100755
--- a/src/roff/groff/tests/adjustment-works.sh
+++ b/src/roff/groff/tests/adjustment-works.sh
@@ -26,7 +26,8 @@ wail () {
   fail=yes
 }
 
-input='.pl 1v
+input='.
+.pl 1v
 .ll 9n
 abc def\p
 .na
@@ -57,9 +58,10 @@ opq rst\p
 uvw xyz\p
 .ad b
 .ad 100
-ABC DEF\p'
+ABC DEF\p
+.'
 
-output=$(echo "$input" | "$groff" -T ascii)
+output=$(printf '%s\n' "$input" | "$groff" -T ascii)
 echo "$output"
 
 # Expected output:

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to