gbranden pushed a commit to branch master
in repository groff.
commit d13040e40325c051e2f7195ddc36943d51bee733
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Oct 29 05:48:52 2025 -0500
[mdoc]: Regression-test Savannah #67646.
* tmac/tests/doc_infer-correct-type-of-dot-T-string.sh: Add test.
* tmac/tmac.am (tmac_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 +++++
.../doc_infer-correct-type-of-dot-T-string.sh | 37 ++++++++++++++++++++++
tmac/tmac.am | 1 +
3 files changed, 46 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 0fad8b0af..bf37e3c8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-10-29 G. Branden Robinson <[email protected]>
+
+ [mdoc]: Regression-test Savannah #67646.
+
+ * tmac/tests/doc_infer-correct-type-of-dot-T-string.sh: Add
+ test.
+ * tmac/tmac.am (tmac_TESTS): Run test.
+
2025-10-28 G. Branden Robinson <[email protected]>
* tmac/s.tmac (TE): Clarify logic. Predicate early return on
diff --git a/tmac/tests/doc_infer-correct-type-of-dot-T-string.sh
b/tmac/tests/doc_infer-correct-type-of-dot-T-string.sh
new file mode 100755
index 000000000..868bafb86
--- /dev/null
+++ b/tmac/tests/doc_infer-correct-type-of-dot-T-string.sh
@@ -0,0 +1,37 @@
+#!/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='.
+.Dd 2025-10-28
+.Dt foo 1
+.Os "groff test suite"
+.Sh Name
+.Nm foo
+.Nd frobnicate a bar
+.Sh Description
+.Em Try my baz .T qux .
+.'
+output=$(printf "%s\n" "$input" \
+ | "$groff" -mdoc -T ascii -P -cbou 2> /dev/null)
+echo "$output"
+echo "$output" | grep -Fq 'Try my baz .T qux.'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 138be42d6..d03ab3b9a 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -219,6 +219,7 @@ tmac_TESTS = \
tmac/tests/doc_heading-font-remapping-works.sh \
tmac/tests/doc_hyphenation-mode-restoration-works.sh \
tmac/tests/doc_indents-correctly.sh \
+ tmac/tests/doc_infer-correct-type-of-dot-T-string.sh \
tmac/tests/doc_output-footer-when-continuously-rendering.sh \
tmac/tests/doc_report-useful-line-numbers-in-diagnostics.sh \
tmac/tests/doc_reset-data-between-documents.sh \
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit