From 69249e8313fb8853c5c162dd16b927099e25bb15 Mon Sep 17 00:00:00 2001 From: Humm Date: Wed, 24 Nov 2021 19:56:44 +0000 Subject: [PATCH] troff: we are not htmlroff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- sys/src/cmd/troff/n5.c | 1 + 1 file changed, 1 insertion(+) 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: