diff options
author | Humm <hummsmith42@gmail.com> | 2021-11-24 19:56:44 +0000 |
---|---|---|
committer | Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com> | 2021-11-24 19:56:44 +0000 |
commit | 69249e8313fb8853c5c162dd16b927099e25bb15 (patch) | |
tree | 7a0edbc5be3bdbdf626c7bbcd56cb37f955891ca /sys | |
parent | f0adfb4dedd27d62db8579cbdac07f72f1500cf9 (diff) |
troff: we are not htmlroff
If we don’t explicitly check for ‘h’ in troff, we can’t reliably check
for non-htmlroff well.
Consider the following:
.if h \{\
. de M
. tm m
..\}
Without this change, this will print m and not define macro M.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/cmd/troff/n5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/troff/n5.c b/sys/src/cmd/troff/n5.c index a1edaf5d5..4f0eed93f 100644 --- a/sys/src/cmd/troff/n5.c +++ b/sys/src/cmd/troff/n5.c @@ -683,6 +683,7 @@ void caseif1(int x) if (TROFF) true++; break; + case 'h': case ' ': break; default: |