]> git.lyx.org Git - features.git/commitdiff
Fix Python unicode string in lyx2lyx
authorScott Kostyshak <skostysh@lyx.org>
Sun, 24 Dec 2017 02:42:43 +0000 (21:42 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 24 Dec 2017 02:47:08 +0000 (21:47 -0500)
This commit amends 586d16a4.

lib/lyx2lyx/lyx_2_3.py

index d64e40c35fdc510ec8a9a97200392f2ba029974b..d0481ae8ff22161fc36dad6c183f23d146750b3c 100644 (file)
@@ -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