gbranden pushed a commit to branch master
in repository groff.
commit a52c1a430934cd82a76f30ee191c3db4cfca79b5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Oct 4 05:07:55 2025 -0500
[groff]: Regression-test Savannah #67577.
* src/roff/groff/tests/backslash-X-is-transparent-to-hyphenation.sh: Do
it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 +++++
src/roff/groff/groff.am | 1 +
.../backslash-X-is-transparent-to-hyphenation.sh | 36 ++++++++++++++++++++++
3 files changed, 45 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 5ddaec152..289e10351 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-10-04 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #67577.
+
+ * src/roff/groff/tests/\
+ backslash-X-is-transparent-to-hyphenation.sh: Do it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2025-10-04 G. Branden Robinson <[email protected]>
* src/roff/troff/node.cpp (node::add_char): Compare integer-
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index b132cfe42..5c038cf3e 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -41,6 +41,7 @@ groff_TESTS = \
src/roff/groff/tests/arithmetic-works.sh \
src/roff/groff/tests/asciify-composite-nodes-correctly.sh \
src/roff/groff/tests/asciify-request-works.sh \
+ src/roff/groff/tests/backslash-X-is-transparent-to-hyphenation.sh \
src/roff/groff/tests/backslash-X-works.sh \
src/roff/groff/tests/backslash-Y-works.sh \
src/roff/groff/tests/backslash-exclamation-early-does-not-fail.sh \
diff --git a/src/roff/groff/tests/backslash-X-is-transparent-to-hyphenation.sh
b/src/roff/groff/tests/backslash-X-is-transparent-to-hyphenation.sh
new file mode 100755
index 000000000..368617072
--- /dev/null
+++ b/src/roff/groff/tests/backslash-X-is-transparent-to-hyphenation.sh
@@ -0,0 +1,36 @@
+#!/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"
+
+input='.
+.ll 3n
+\X@tty:@altar
+.br
+al\X@tty:@tar
+.br
+altar\X@tty:@
+.'
+
+output=$(echo "$input" | "$groff" -T ascii)
+echo "$output"
+! echo "$output" | grep -q 'altar'
+
+# vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit