gbranden pushed a commit to branch master
in repository groff.
commit 0a0bfe65c8d883add6a95f3e7c1fe6122c665c7e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jan 14 10:07:07 2024 -0600
[tbl]: Add test case.
* src/preproc/tbl/tests/do-not-overdraw-page-top-in-nroff-mode.sh: Add
an eleventh test case, prompted by ascii(7) from Linux man-pages,
where a table with a vertical rule got coincidentally rendered at the
very top of a page (which can only happen in continuous rendering
mode, where the page boundaries are invisible) while no-space mode was
on (due to the table immediately following a paragraphing macro).
Test fails at this commit.
---
ChangeLog | 13 +++++++++++++
.../tests/do-not-overdraw-page-top-in-nroff-mode.sh | 20 ++++++++++++++++++++
2 files changed, 33 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 38d201df4..768cd8ca8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2024-01-14 G. Branden Robinson <[email protected]>
+
+ [tbl]: Add another test case.
+
+ * src/preproc/tbl/tests/\
+ do-not-overdraw-page-top-in-nroff-mode.sh: Add an eleventh test
+ case, prompted by ascii(7) from Linux man-pages, where a table
+ with a vertical rule got coincidentally rendered at the very top
+ of a page (which can only happen in continuous rendering mode,
+ where the page boundaries are invisible) while no-space mode was
+ on (due to the table immediately following a paragraphing
+ macro).
+
2024-01-14 Deri James <[email protected]>
[gropdf]: Retain plain ASCII labels when possible.
diff --git a/src/preproc/tbl/tests/do-not-overdraw-page-top-in-nroff-mode.sh
b/src/preproc/tbl/tests/do-not-overdraw-page-top-in-nroff-mode.sh
index c4698f184..86b343276 100755
--- a/src/preproc/tbl/tests/do-not-overdraw-page-top-in-nroff-mode.sh
+++ b/src/preproc/tbl/tests/do-not-overdraw-page-top-in-nroff-mode.sh
@@ -220,6 +220,26 @@ echo "$error" | grep -q 'grotty:' && wail
echo "checking that table data begin on first output line"
echo "$output" | sed -n '1p' | grep -q 'foo' || wail
+# Case 11: No horizontal rules; vertical rule between columns, and the
+# document has no-space mode on.
+input='.ns
+.TS
+tab(@);
+L | L.
+foo@bar
+.TE'
+
+tmp=$(printf "%s\n" "$input" | "$groff" -t -Z -Tascii -P-cbou)
+output=$(printf "%s" "$tmp" | "$grotty" -F ./font 2>/dev/null)
+error=$(printf "%s" "$tmp" | "$grotty" -F ./font 2>&1 >/dev/null)
+echo "$output"
+
+echo "checking for vertical rule at top of page (11)"
+echo "$output" | sed 1p | grep -q ' *|$' || wail
+
+echo "checking that no diagnostic messages are produced by grotty (11)"
+echo "$error" | grep -q 'grotty:' && wail
+
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