summaryrefslogtreecommitdiff
path: root/sys/src/cmd/troff
diff options
context:
space:
mode:
authorHumm <hummsmith42@gmail.com>2021-11-24 19:56:44 +0000
committerSigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>2021-11-24 19:56:44 +0000
commit69249e8313fb8853c5c162dd16b927099e25bb15 (patch)
tree7a0edbc5be3bdbdf626c7bbcd56cb37f955891ca /sys/src/cmd/troff
parentf0adfb4dedd27d62db8579cbdac07f72f1500cf9 (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/src/cmd/troff')
-rw-r--r--sys/src/cmd/troff/n5.c1
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: