From 0563c3aa70007b6d35db9412b7ec6241bfad81c3 Mon Sep 17 00:00:00 2001 From: Ed Summers Date: Wed, 18 Jan 2017 22:07:03 -0500 Subject: [PATCH] ignore soft-hyphens --- diffengine/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/diffengine/__init__.py b/diffengine/__init__.py index 80a630a..487cdc8 100755 --- a/diffengine/__init__.py +++ b/diffengine/__init__.py @@ -477,6 +477,7 @@ def _normal(s): s = s.replace('”', '"') s = s.replace("’", "'") s = s.replace("\n", " ") + s = s.replace("­", "") s = re.sub(r' +', ' ', s) return s