gbranden pushed a commit to branch master
in repository groff.
commit 58c7d59de35913b661f051fe1d8067a29a121fc4
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jan 14 11:43:04 2025 -0600
[man]: Regression-test Savannah #66664.
* tmac/tests/an_title-abbreviation-works.sh: Add test case.
Test fails at this commit.
---
ChangeLog | 6 ++++++
tmac/tests/an_title-abbreviation-works.sh | 25 ++++++++++++++++++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a4e8bb9cc..94157e865 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-01-14 G. Branden Robinson <[email protected]>
+
+ [man]: Regression-test Savannah #66664.
+
+ * tmac/tests/an_title-abbreviation-works.sh: Add test case.
+
2025-01-14 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp (do_input_trap): Directly copy Boolean
diff --git a/tmac/tests/an_title-abbreviation-works.sh
b/tmac/tests/an_title-abbreviation-works.sh
index c7a07b940..f621cab03 100755
--- a/tmac/tests/an_title-abbreviation-works.sh
+++ b/tmac/tests/an_title-abbreviation-works.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (C) 2021-2024 Free Software Foundation, Inc.
+# Copyright (C) 2021-2025 Free Software Foundation, Inc.
#
# This file is part of groff.
#
@@ -57,6 +57,29 @@ title_abbv="CosNotif...hSupplier(3erl)"
pattern="$title_abbv Erlang Module Definition $title_abbv"
echo "$output" | grep -Fq "$pattern" || wail
+input='.
+.TH SSL_CTX_sess_set_remove_cb 3 2025-01-09 "groff test suite"
+.SH Name
+SSL_CTX_sess_set_remove_cb \- use a brilliantly designed API
+.'
+
+# Check every line length between 64 and 68 inclusive. Some of these
+# values elicit crowding in groff 1.23.
+
+echo "checking that known troublesome man page title abbreviates well" \
+ >&2
+for width in 64 65 66 67 68
+do
+ output=$(echo "$input" \
+ | "$groff" -r LL=${width}n -m an -T ascii -P -cbou)
+ echo "$output"
+ if ! echo "$output" | sed -n 1p | grep ' Library Functions Manual '
+ then
+ wail
+ break
+ fi
+done
+
test -z "$fail"
# vim:set ai et sw=4 ts=4 tw=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit