git: plan9front

Download patch

ref: 6397d1b59f175dc06428a6378ea9ac5548d94e59
parent: dd0004606408776315a3b2a11398da20f71279c5
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jun 5 18:24:32 EDT 2025

htmlroff: sometimes a quote is just a quote

This &[lr]squo; replacement breaks copy-paste out of html.
While there's potential to be more clever about it, doing
the replacement based on font or contest, just not doing
it at all is fine too.

--- a/sys/src/cmd/htmlroff/roff.c
+++ b/sys/src/cmd/htmlroff/roff.c
@@ -689,12 +689,6 @@
 	case Uminus:
 		r = '-';
 		break;
-	case '\'':
-		Bprint(&bout, "&rsquo;");
-		return;
-	case '`':
-		Bprint(&bout, "&lsquo;");
-		return;
 	case Uamp:
 		Bputrune(&bout, '&');
 		return;
--