Follow-up Comment #15, bug #67570 (group groff): [comment #14 comment #14:] > Ingo will laugh at me, but it'll be worth it if I get a regression test out > of this.
I got a regression test out of this. $ cat src/roff/groff/tests/cflags-works-on-character-classes.sh #!/bin/sh # # Copyright 2025 G. Branden Robinson # # This file is part of groff. # # groff is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free # Software Foundation, either version 3 of the License, or # (at your option) any later version. # # groff is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. groff="${abs_top_builddir:-.}/test-groff" # Regression-test Savannah #67570. Thanks to Dave Kemper for the # reproducer. input='. .ec @ .class [EOS] @[em] .cflags 1 @C![EOS]! 1234567890123456 .br I@[em] fold. .pl @n[nl]u .' output=$(printf "%s\n" "$input" | "$groff" -T ascii) echo "$output" | grep -Fqx 'I-- fold.' # vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72: _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?67570> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature
