]> git.lyx.org Git - features.git/commitdiff
* lib/lyx2lyx/lyx_1_1.py (revert_latexcommand_index):
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 8 Dec 2007 15:56:19 +0000 (15:56 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 8 Dec 2007 15:56:19 +0000 (15:56 +0000)
- umlauts must be reverted to escaped forms.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22022 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_1_6.py

index f5e5199627a275b02b6971a2e52928ec1102e14b..a32090d42932b40849c29e00bc5fcb35009c4753 100644 (file)
@@ -433,6 +433,7 @@ def revert_latexcommand_index(document):
             line = line[10:]
           if line.startswith("status collapsed"):
             line = line[16:]
+          line = line.replace(u'ä', r'\\\"a').replace(u'ö', r'\\\"o').replace(u'ü', r'\\\"u')
           content = content + line;
         document.body[i + 3] = "name " + '"' + content + '"'
         for k in range(i + 4, j - 2):