[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 04/04: tmac/an-ext.tmac: Fix .ME/.UE portability issue.
From: |
G. Branden Robinson |
Subject: |
[groff] 04/04: tmac/an-ext.tmac: Fix .ME/.UE portability issue. |
Date: |
Thu, 4 Jun 2020 07:46:44 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 7c2e5782d95d8520b5bd3b6b71d8b9192fe60e5d
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Jun 4 21:08:16 2020 +1000
tmac/an-ext.tmac: Fix .ME/.UE portability issue.
* tmac/an-ext.tmac (.ME, .UE): Fix portability issue. While widely
supported(1), the \$* escape is not documented in CSTR #54. If groff
is not the typesetter, append macro arguments using \$1, \$2, ..., \$9
instead. This is an edge case; .ME and .UE are documented as
supporting only one argument anyway.
(1) AT&T troff (obviously) and Plan 9 troff don't support it. Heirloom
Doctools troff added support in its 050816 release (August 2005) and
neatroff in a commit on 2018-03-02.
---
ChangeLog | 8 ++++++++
tmac/an-ext.tmac | 14 ++++++++------
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index af26fa8..df78ba7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-06-04 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/an-ext.tmac (.ME, .UE): Fix portability issue. While
+ widely supported, the \$* escape is not documented in CSTR #54.
+ If groff is not the typesetter, append macro arguments using
+ \$1, \$2, ..., \$9 instead. This is an edge case; .ME and .UE
+ are documented as supporting only one argument anyway.
+
2020-05-19 G. Branden Robinson <g.branden.robinson@gmail.com>
* man/groff.7.man (Numerical Expressions): Fix error: negative
diff --git a/tmac/an-ext.tmac b/tmac/an-ext.tmac
index 5dc9752..49f086d 100644
--- a/tmac/an-ext.tmac
+++ b/tmac/an-ext.tmac
@@ -125,9 +125,10 @@
. do HTML-NS "<a href=""\\*(m1"">\\*(m1</a>"
\&\\$*\"
. \}
-. el \
-\\*(la\\*(m1\\*(ra\\$*\"
-.
+. el \{\
+. ie \n(.g \\*(la\\*(m1\\*(ra\\$*\"
+. el \\*(la\\*(m1\\*(ra\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9\"
+. \}
. hy \\n(HY
..
.
@@ -164,9 +165,10 @@
. do HTML-NS "<a href=""mailto:\\*(m1"">\\*(m1</a>"
\&\\$*\"
. \}
-. el \
-\\*(la\\*(m1\\*(ra\\$*\"
-.
+. el \{\
+. ie \n(.g \\*(la\\*(m1\\*(ra\\$*\"
+. el \\*(la\\*(m1\\*(ra\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9\"
+. \}
. hy \\n(HY
..
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 04/04: tmac/an-ext.tmac: Fix .ME/.UE portability issue.,
G. Branden Robinson <=