groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 02/06: [tbl]: Regression-test Savannah #66290.


From: G. Branden Robinson
Subject: [groff] 02/06: [tbl]: Regression-test Savannah #66290.
Date: Fri, 4 Oct 2024 06:49:34 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f67cddb2efaccb5bf00238a2bef23250697a1965
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 4 04:56:53 2024 -0500

    [tbl]: Regression-test Savannah #66290.
    
    * src/preproc/tbl/tests/save-and-restore-line-numbering.sh: Add
      regression test for Savannah #66290.
    
    Test fails at this commit.
---
 ChangeLog                                          |  5 ++++
 .../tbl/tests/save-and-restore-line-numbering.sh   | 31 +++++++++++++++++++++-
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 2ed13fa10..08d84d5bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-04  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/preproc/tbl/tests/save-and-restore-line-numbering.sh: Add
+       regression test for Savannah #66290.
+
 2024-10-03  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/groff/tests/\
diff --git a/src/preproc/tbl/tests/save-and-restore-line-numbering.sh 
b/src/preproc/tbl/tests/save-and-restore-line-numbering.sh
index 592b43acd..de0f71842 100755
--- a/src/preproc/tbl/tests/save-and-restore-line-numbering.sh
+++ b/src/preproc/tbl/tests/save-and-restore-line-numbering.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2022 Free Software Foundation, Inc.
+# Copyright (C) 2022-2024 Free Software Foundation, Inc.
 #
 # This file is part of groff.
 #
@@ -80,6 +80,35 @@ echo "$output"
 echo "testing that suppressed numbering is restored correctly" >&2
 echo "$output" | grep -Eq '4 +numbering returns here' || wail
 
+# Regression-test Savannah #66290.
+#
+# A positive `ln` register value alone should not cause disabled line
+# numbering to scrabble out of the grave after setting a table region.
+
+input='.
+.nf
+.nm 1
+This is temporarily line-numbered text.
+alpha
+beta
+.nm
+Now it is off.
+.TS
+L.
+I am a table.
+I have two rows.
+.TE
+gamma
+delta
+Line numbering had better still be off.
+.'
+
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -t)
+echo "$output"
+
+echo "testing that disabled numbering doesn't resurrect after table" >&2
+echo "$output" | grep -Fqx 'gamma' || wail
+
 test -z "$fail"
 
 # vim:set ai et sw=4 ts=4 tw=72:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]