gbranden pushed a commit to branch master in repository groff. commit 7f6b57f0e4f1de64bec0b78b0002aec54d7905e7 Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Wed Sep 17 19:04:39 2025 -0500
[groff]: Add test case for `asciify` of div `'sp`. * src/roff/groff/tests/asciify-request-works.sh: Add test case for transformation of nodes produced by diverted `sp` requests. Test fails at this commit. --- ChangeLog | 5 +++++ src/roff/groff/tests/asciify-request-works.sh | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 61de49f50..18480296d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-09-14 G. Branden Robinson <g.branden.robin...@gmail.com> + + * src/roff/groff/tests/asciify-request-works.sh: Add test case + for transformation of nodes produced by diverted `sp` requests. + 2025-09-17 G. Branden Robinson <g.branden.robin...@gmail.com> * src/roff/troff/node.cpp (glyph_node::asciify) diff --git a/src/roff/groff/tests/asciify-request-works.sh b/src/roff/groff/tests/asciify-request-works.sh index 13e0e34cb..567348444 100755 --- a/src/roff/groff/tests/asciify-request-works.sh +++ b/src/roff/groff/tests/asciify-request-works.sh @@ -49,7 +49,13 @@ A#[dq]#[e aa]#[u00E1]#[u0106]i#[fl]o#[Fl]#[Z] .br .ec $ .box DIV2 -$%antimatter15@$b"hup"16@ +$%antimatter15@$b"hup"16@$c +.$" Use the no-break control character because the ordinary one still +.$" results in a newline in asciified diversion. Bug? +.c2 ! +!sp +.c2 +17@ .br .box .asciify DIV2 @@ -136,6 +142,9 @@ echo "$output" | grep -q '^antimatter15' || wail echo "checking textification of bracket-building escape sequence" >&2 echo "$output" | grep -q '15@16' || wail +echo "checking textification of diverted 'sp' request" >&2 +echo "$output" | grep -q '16@17' || wail + test -z "$fail" # vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72: _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit