]> git.lyx.org Git - lyx.git/commitdiff
* lib/lyx2lyx/lyx_1_6.py:
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 9 May 2008 10:53:08 +0000 (10:53 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 9 May 2008 10:53:08 +0000 (10:53 +0000)
- 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

index b4df663d487bbcd949573a3d4263252b9593457e..3506a2ea9cebbe856a070ec839c392d7f3074ec9 100644 (file)
@@ -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):