[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 90/127: [tbl]: Regression-test Savannah #64122.
From: |
G. Branden Robinson |
Subject: |
[groff] 90/127: [tbl]: Regression-test Savannah #64122. |
Date: |
Mon, 10 Jul 2023 04:30:59 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit c2033f0d36374af86d21750489deaa789e8513ed
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 28 06:15:38 2023 -0500
[tbl]: Regression-test Savannah #64122.
* src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh:
Update input and add check.
Test fails at this commit.
---
ChangeLog | 8 ++++++++
.../tests/save-and-restore-hyphenation-parameters.sh | 18 +++++++++++++++++-
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b68674509..4941ea93d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-04-28 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [tbl]: Regression-test Savannah #64122.
+
+ * src/preproc/tbl/tests/\
+ save-and-restore-hyphenation-parameters.sh: Update input and add
+ check.
+
2023-04-25 G. Branden Robinson <g.branden.robinson@gmail.com>
[troff]: Drop `POPEN_MISSING` preprocessor macro.
diff --git a/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh
b/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh
index f2334b0e2..14b6f283d 100755
--- a/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh
+++ b/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright (C) 2021 Free Software Foundation, Inc.
+# Copyright (C) 2021-2023 Free Software Foundation, Inc.
#
# This file is part of groff.
#
@@ -34,9 +34,15 @@ wail () {
input='.nr LL 78n
.hw a-bc-def-ghij-klmno-pqrstu-vwxyz
+.hym 2n
+.hys 1n
.LP
+before: .hym=\n[.hym], .hys=\n[.hys]
+.br
+.
Here is a table with hyphenation disabled in its text block.
.
+.
.TS
tab(@);
L Lx.
@@ -48,6 +54,11 @@ abcdefghijklmnopqrstuvwxyz
T}
.TE
.
+.
+.LP
+after: .hym=\n[.hym], .hys=\n[.hys]
+.br
+.
Let us see if hyphenation is enabled again as it should be.
abcdefghijklmnopqrstuvwxyz'
@@ -61,6 +72,11 @@ echo "$output" | grep '^foo' | grep -- '-$' && wail
echo "checking whether hyphenation enabled after table" >&2
echo "$output" | grep -qx 'Let us see.*lmno-' || wail
+# Regression-test Savannah #64122.
+
+echo "checking whether hyphenation margin and spacing preserved" >&2
+echo "$output" | grep -Fqx 'after: .hym=48, .hys=24' || wail
+
test -z "$fail"
# vim:set ai et sw=4 ts=4 tw=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 90/127: [tbl]: Regression-test Savannah #64122.,
G. Branden Robinson <=