diff options
author | wl <wl> | 2008-10-04 06:23:07 +0000 |
---|---|---|
committer | wl <wl> | 2008-10-04 06:23:07 +0000 |
commit | 1551c764c5d2d2319af7d528863895ece31b730a (patch) | |
tree | c73e21d5a78d8cb2a8738f1fdca2fa79e6bf3f39 /tmac | |
parent | d0e0edd48d0e73b69fb8ba8b29b102f2bde88d13 (diff) | |
download | groff-1551c764c5d2d2319af7d528863895ece31b730a.tar.gz |
* tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up
default macros. This causes endless loops (at least for TE).
Diffstat (limited to 'tmac')
-rw-r--r-- | tmac/www.tmac | 28 |
1 files changed, 24 insertions, 4 deletions
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 |