From 1551c764c5d2d2319af7d528863895ece31b730a Mon Sep 17 00:00:00 2001 From: wl Date: Sat, 4 Oct 2008 06:23:07 +0000 Subject: * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up default macros. This causes endless loops (at least for TE). --- tmac/www.tmac | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'tmac') diff --git a/tmac/www.tmac b/tmac/www.tmac index dbbe143d..ffc3ac65 100644 --- a/tmac/www.tmac +++ b/tmac/www.tmac @@ -1369,10 +1369,30 @@ HTML always denotes XHTML also. .\" .\" now set up TS, TE, EQ, EN default macros .\" -.do if !d TS .do als TS HTML-IMAGE\" -.do if !d TE .do als TE HTML-IMAGE-END\" -.do if !d EQ .do als EQ EQN-HTML-IMAGE\" -.do if !d EN .do als EN EQN-HTML-IMAGE-END\" +.\" we must not use `.als': the definition of .TE in s.tmac, for example, +.\" calls .HTML-IMAGE-END, which would refer to itself due to the alias, +.\" causing an endless loop +.\" +.if !d TS \{\ +. de TS +. nop \\*[HTML-IMAGE]\\ +. . +.\} +.if !d TE \{\ +. de TE +. nop \\*[HTML-IMAGE-END]\\ +. . +.\} +.if !d EQ \{\ +. de EQ +. nop \\*[EQN-HTML-IMAGE]\\ +. . +.\} +.if !d EN \{\ +. de EN +. nop \\*[EQN-HTML-IMAGE-END]\\ +. . +.\} . .\" -------------------------------------------------------------------- .\" JOBNAME -- cgit v1.2.1