shithub: riscv

Download patch

ref: 820c6acc6049d8d4fdf6111eebdd568266a8065b
parent: 58339beadd65d86a8454d39aa11e47de1a92f7a5
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);
 }
 /*