From b7983478e1789cd4a4e328f52c5b2e6e63b87d9e Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 23 Dec 2017 21:42:43 -0500 Subject: [PATCH] Fix Python unicode string in lyx2lyx This commit amends 586d16a4. --- lib/lyx2lyx/lyx_2_3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx/lyx_2_3.py index d64e40c35f..d0481ae8ff 100644 --- a/lib/lyx2lyx/lyx_2_3.py +++ b/lib/lyx2lyx/lyx_2_3.py @@ -1875,7 +1875,7 @@ def convert_dashligatures(document): flags=re.UNICODE): has_literal_dashes = True # ligature dash followed by word or no-break space on next line: - if re.search(ur"(\\twohyphens|\\threehyphens)", line, + if re.search(u"(\\twohyphens|\\threehyphens)", line, flags=re.UNICODE) and re.match(u"[\w\u00A0]", document.body[i+1], flags=re.UNICODE): has_ligature_dashes = True -- 2.39.2