9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] [PATCH] troff: we are not htmlroff
@ 2021-11-27 19:43 Humm
  2021-12-04 23:23 ` Humm
  2021-12-05  0:00 ` ori
  0 siblings, 2 replies; 11+ messages in thread
From: Humm @ 2021-11-27 19:43 UTC (permalink / raw)
  To: 9front


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.
---
diff 24b9a78ceb63234ef0b0e7d1da0d46119b7a297d c2f89dc6c142284fc3b4c38a4e9fbf5c0c5b2a1d
--- a/sys/src/cmd/troff/n5.c	Wed Nov 24 15:41:36 2021
+++ b/sys/src/cmd/troff/n5.c	Wed Nov 24 20:56:44 2021
@@ -683,6 +683,7 @@
  		if (TROFF)
  			true++;
  		break;
+	case 'h':
  	case ' ':
  		break;
  	default:

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-12-06  1:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27 19:43 [9front] [PATCH] troff: we are not htmlroff Humm
2021-12-04 23:23 ` Humm
2021-12-04 23:46   ` Sigrid Solveig Haflínudóttir
2021-12-05  1:24     ` Humm
2021-12-05  1:48       ` Sigrid Solveig Haflínudóttir
2021-12-05  0:46   ` Noam Preil
2021-12-05  1:19     ` Noam Preil
2021-12-05  2:36       ` Humm
2021-12-05 13:22         ` Noam Preil
2021-12-05  1:19     ` Humm
2021-12-05  0:00 ` ori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).