Remove useless soft hyphens

This commit is contained in:
M66B 2022-02-15 15:57:53 +01:00
parent c9fac1eabb
commit 83478a54fc
1 changed files with 4 additions and 0 deletions

View File

@ -2771,6 +2771,10 @@ public class HtmlHelper {
(i == 0 || endsWithSpace(block.get(i - 1).text())))
text = text.substring(1);
// Soft hyphen
if (text.trim().equals("\u00ad"))
text = "";
tnode.text(text);
if (TextUtils.isEmpty(text))