gbranden pushed a commit to branch master
in repository groff.
commit bb57a4c8453f5faa6d5bf4c6068eb16c884fa475
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Dec 21 11:20:41 2025 -0600
[grohtml,grotty]: Fix Savannah #67843.
* tmac/html-end.tmac:
* tmac/tty.tmac: Set the page offset to zero _twice_, to better simulate
AT&T nroff behavior. (Do it for the "html" device too; it better
resembles an nroff-mode device than a troff-mode one.)
---
ChangeLog | 9 +++++++++
tmac/html-end.tmac | 7 ++++---
tmac/tty.tmac | 5 ++++-
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7a54b9ad5..86ba659ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-12-21 G. Branden Robinson <[email protected]>
+
+ [grohtml,grotty]: Fix Savannah #67843.
+
+ * tmac/html-end.tmac:
+ * tmac/tty.tmac: Set the page offset to zero _twice_, to better
+ simulate AT&T nroff behavior. (Do it for the "html" device too;
+ it better resembles an nroff-mode device than a troff-mode one.)
+
2025-12-21 G. Branden Robinson <[email protected]>
[troff]: Regression-test Savannah #67843.
diff --git a/tmac/html-end.tmac b/tmac/html-end.tmac
index f88c9d340..ef1ef7aea 100644
--- a/tmac/html-end.tmac
+++ b/tmac/html-end.tmac
@@ -1,6 +1,4 @@
-.\" -*- nroff -*-
-.\"
-.\" html-end.tmac
+.\" Configure groff output device "html".
.\"
.do nr *groff_html-end_tmac_C \n[.cp]
.cp 0
@@ -18,6 +16,9 @@
.
.\" tell grohtml some default parameter values
.pl \n[.R]u-1v
+.\" Set the page offset twice to clobber the "previous" page offset for
+.\" consistency with nroff-mode devices. See Savannah #67843.
+.po 0
.po 0
.ll \n[.l]u
.ta \n[.tabs]
diff --git a/tmac/tty.tmac b/tmac/tty.tmac
index 79c308e20..b43606bd1 100644
--- a/tmac/tty.tmac
+++ b/tmac/tty.tmac
@@ -1,4 +1,4 @@
-.\" Configure grotty(1) output devices: "ascii", "latin1", and "utf8".
+.\" Configure groff output devices "ascii", "latin1", and "utf8".
.\"
.do nr *groff_tty_tmac_C \n[.cp]
.cp 0
@@ -6,6 +6,9 @@
.nroff
.ta T 0.8i
.
+.\" Set the page offset twice to clobber the "previous" page offset and
+.\" simulate AT&T nroff behavior. See Savannah #67843.
+.po 0
.po 0
.
.\" Traditionally, an em dash is rendered on a typewriter with two
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit