From e2ed743c23880d7037c398bb3a50de32b0161cc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 9 May 2008 10:53:08 +0000 Subject: [PATCH] * lib/lyx2lyx/lyx_1_6.py: - partial fix of bug 4838 (reversion of new index inset to 1.5) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24697 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index b4df663d48..3506a2ea9c 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -820,8 +820,8 @@ def revert_latexcommand_index(document): line = line[20:] if line.startswith("\\begin_layout Standard"): line = line[22:] - if line.startswith("\\begin_layout Plain"): - line = line[22:] + if line.startswith("\\begin_layout Plain Layout"): + line = line[26:] if line.startswith("\\end_layout"): line = line[11:] if line.startswith("\\end_inset"): @@ -829,6 +829,7 @@ def revert_latexcommand_index(document): if line.startswith("status collapsed"): line = line[16:] line = line.replace(u'ä', r'\\\"a').replace(u'ö', r'\\\"o').replace(u'ü', r'\\\"u') + line = line.replace(r'\backslash', r'\textbackslash{}') content = content + line; document.body[i + 3] = "name " + '"' + content + '"' for k in range(i + 4, j - 2): -- 2.39.5