From 0b3c217b796c2e4bf908cfe18df3cd1514ce5d1d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 27 Jun 2007 20:46:04 +0000 Subject: [PATCH] =?utf8?q?lyx=5F1=5F5.py:=20last=20part=20of=20fix=20for?= =?utf8?q?=20bug=203313=20OK=20from=20Jos=C3=A9:=20http://www.mail-archive?= =?utf8?q?.com/lyx-devel@lists.lyx.org/msg121628.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18918 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_5.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_5.py b/lib/lyx2lyx/lyx_1_5.py index d934d80e9a..7463f230ae 100644 --- a/lib/lyx2lyx/lyx_1_5.py +++ b/lib/lyx2lyx/lyx_1_5.py @@ -1847,16 +1847,18 @@ Forced output is currently not enforced''' spec_chars = {} for line in fp.readlines(): if line[0] != '#': - line=line.replace('"','') #remove all qoutation marks + line=line.replace(' "',' ') # remove all qoutation marks with spaces before + line=line.replace('" ',' ') # remove all qoutation marks with spaces after + line=line.replace(r'\"','"') # replace \" by " (for characters with diaresis) try: # flag1 and flag2 are preamble & flags - # currently NOT impemented + # currently NOT implemented [ucs4,command,flag1,flag2] =line.split(None,3) spec_chars[unichr(eval(ucs4))] = [command, flag1, flag2] except: pass fp.close() - #Define strings to start and end ERT and math insets + # Define strings to start and end ERT and math insets ert_intro='\n\n\\begin_inset ERT\nstatus collapsed\n\\begin_layout Standard\n\\backslash\n' ert_outro='\n\\end_layout\n\n\\end_inset\n\n' math_intro='\n\\begin_inset Formula $' @@ -2003,4 +2005,3 @@ if __name__ == "__main__": pass - -- 2.39.2