[tin-dev] [PATCH] bug in remove_soft_hyphens()

Dennis Preiser dennis at d--p.de
Mon Nov 13 09:23:03 CET 2023


If there are several consecutive soft hyphens, every second one is
displayed despite suppress_soft_hyphens=ON.

Example: <b0b8/f212/dcsmm/813dlg at barghahn-online.de> contains four lines
with several consecutive 0xad.

Dennis

--- a/src/misc.c
+++ b/src/misc.c
@@ -3831,7 +3831,7 @@ remove_soft_hyphens(
 		while (*rptr) {
 			if (*rptr == 0xad)
 				++rptr;
-			if (*rptr)
+			if (*rptr && *rptr != 0xad)
 				*wptr++ = *rptr++;
 		}
 		*wptr = '\0';




More information about the tin-dev mailing list