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 | |
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).
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | tmac/www.tmac | 28 |
2 files changed, 27 insertions, 4 deletions
@@ -4,6 +4,9 @@ \O[5] non-transparent w.r.t. beginning-of-line recognition (similar to the other \O variants). + * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up + default macros. This causes endless loops (at least for TE). + 2008-10-03 Werner LEMBERG <wl@gnu.org> * src/devices/grops/grops.man, src/roff/troff/troff.man, 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 |