gbranden pushed a commit to branch master
in repository groff.

commit 0813a6175a83e0c0db6838219ec62be6eb7bf642
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Dec 19 15:37:01 2025 -0600

    [rfc1345]: Regression-test Savannah #67827.
    
    * contrib/rfc1345/tests/character-definitions-lack-space.sh: Do it.
    
    * contrib/rfc1345/rfc1345.am (rfc1345_TESTS): Run test.
    
    Test fails at this commit.
---
 contrib/rfc1345/ChangeLog                          |  7 +++++
 contrib/rfc1345/rfc1345.am                         |  1 +
 .../tests/character-definitions-lack-space.sh      | 34 ++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/contrib/rfc1345/ChangeLog b/contrib/rfc1345/ChangeLog
index dddf8f0ca..f2f5144a2 100644
--- a/contrib/rfc1345/ChangeLog
+++ b/contrib/rfc1345/ChangeLog
@@ -1,3 +1,10 @@
+2025-12-19  G. Branden Robinson <[email protected]>
+
+       Regression-test Savannah #67827.
+
+       * tests/character-definitions-lack-space.sh: Do it.
+       * rfc1345.am (rfc1345_TESTS): Run test.
+
 2025-04-27  G. Branden Robinson <[email protected]>
 
        * rfc1345.tmac: Add Vim 9.1.1065 digraph `.=` for U+2250
diff --git a/contrib/rfc1345/rfc1345.am b/contrib/rfc1345/rfc1345.am
index 3ed371423..587c99eee 100644
--- a/contrib/rfc1345/rfc1345.am
+++ b/contrib/rfc1345/rfc1345.am
@@ -25,6 +25,7 @@ rfc1345tmacdir = $(tmacdir)
 dist_rfc1345tmac_DATA = contrib/rfc1345/rfc1345.tmac
 
 rfc1345_TESTS= \
+  contrib/rfc1345/tests/character-definitions-lack-space.sh \
   contrib/rfc1345/tests/rfc1345-smoke-test.sh
 TESTS += $(rfc1345_TESTS)
 EXTRA_DIST += $(rfc1345_TESTS)
diff --git a/contrib/rfc1345/tests/character-definitions-lack-space.sh 
b/contrib/rfc1345/tests/character-definitions-lack-space.sh
new file mode 100755
index 000000000..5b1b19b5e
--- /dev/null
+++ b/contrib/rfc1345/tests/character-definitions-lack-space.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Copyright 2025 G. Branden Robinson
+#
+# This file is part of groff, the GNU roff typesetting system.
+#
+# groff is free software; you can redistribute it and/or modify it over
+# 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='.
+.mso rfc1345.tmac
+\[!I]Dios mio!
+.pl \n[nl]u
+.'
+
+# More than 12 characters of output could mean junk spaces crept in.
+output=$(printf "%s\n" "$input" | "$groff" -T utf8 2>&1)
+echo "$output"
+test $(echo "$output" | wc -c) -eq 12
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:

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

Reply via email to