[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 03/03: tmac/an-old.tmac (register setup): Tidy up.
From: |
G. Branden Robinson |
Subject: |
[groff] 03/03: tmac/an-old.tmac (register setup): Tidy up. |
Date: |
Mon, 28 Sep 2020 09:33:05 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 3d60b8e186808e6ef955643ec4d98fd1495fb6e6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Sep 28 18:51:27 2020 +1000
tmac/an-old.tmac (register setup): Tidy up.
* tmac/an-old.tmac (register setup): Condition decisions on \n[an-html]
rather than a string comparison using \*[.T]; that is what the
register is there for.
---
ChangeLog | 6 ++++++
tmac/an-old.tmac | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fd87fde..44ac04f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2020-09-28 G. Branden Robinson <g.branden.robinson@gmail.com>
+ * tmac/an-old.tmac (register setup): Condition decisions on
+ \n[an-html] rather than a string comparison using \*[.T]; that
+ is what the register is there for.
+
+2020-09-28 G. Branden Robinson <g.branden.robinson@gmail.com>
+
* tmac/andoc.tmac: Save alias to .ne request.
(reload-doc): Restore .ne request, which an-old.tmac meddles
with if continuous rendering is used. (The meddling ultimately
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index 33dd01c..ae91bd5 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -732,7 +732,7 @@
.\" used for internal purposes like image embedding.
.\"
.if r P \
-. if '\*[.T]'html' \
+. if \n[an-html] \
. if !(\n[P] = 1) \{\
. tm \*[an-old]: ignoring starting page number in HTML output
. rr P
@@ -760,7 +760,7 @@
.\" Unlike most of these parameters, we do not set a default for X; only
.\" the macro an-p-footer uses it.
.if r X \
-. if '\*[.T]'html' \{\
+. if \n[an-html] \{\
. tm \*[an-old]: ignoring page letter suffixing in HTML output
. rr X
. \}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 03/03: tmac/an-old.tmac (register setup): Tidy up.,
G. Branden Robinson <=