ref: 28ccd44b638d9ad7aa13be09cf38483df4f0b723
parent: 8558b1b947e9e4c2535af1a39bb25ac890ca0e44
author: Humm <hummsmith42@gmail.com>
date: Wed Nov 24 14:56:44 EST 2021
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.
--- a/sys/src/cmd/troff/n5.c
+++ b/sys/src/cmd/troff/n5.c
@@ -683,6 +683,7 @@
if (TROFF)
true++;
break;
+ case 'h':
case ' ':
break;
default:
--
⑨