git: 9front

Download patch

ref: d389ae26f9bd1149e7acf0bc888d8e52c1c24543
parent: ff19a2e588c0a99c1e4060099acc17f9b8bffb96
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Oct 18 10:20:37 EDT 2022

mothra: get rid of soft hyphens

--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -367,8 +367,11 @@
 				while(u<s)
 					*t++=*u++;
 			}
-		}	
-		else *t++=c;
+		}
+		else if((uchar)c == 0xc2 && (uchar)*s == 0xad)
+			s++; /* ignore soft hyphens */
+		else
+			*t++=c;
 	}while(c);
 }
 /*
--