diff options
author | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-10-18 14:20:37 +0000 |
---|---|---|
committer | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-10-18 14:20:37 +0000 |
commit | 820c6acc6049d8d4fdf6111eebdd568266a8065b (patch) | |
tree | 412be27332928c8d1fa1108ee212edf8247e17f9 /sys/src/cmd/mothra | |
parent | 58339beadd65d86a8454d39aa11e47de1a92f7a5 (diff) |
mothra: get rid of soft hyphens
Diffstat (limited to 'sys/src/cmd/mothra')
-rw-r--r-- | sys/src/cmd/mothra/rdhtml.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c index cf5d137a7..58d7c1052 100644 --- a/sys/src/cmd/mothra/rdhtml.c +++ b/sys/src/cmd/mothra/rdhtml.c @@ -367,8 +367,11 @@ void pl_rmentities(Hglob *, char *s){ 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); } /* |