]> git.lyx.org Git - features.git/commitdiff
* lyx_1_6.py:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 11 Nov 2008 17:24:07 +0000 (17:24 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 11 Nov 2008 17:24:07 +0000 (17:24 +0000)
- fix reversion of info insets.

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

lib/lyx2lyx/lyx_1_6.py
status.16x

index cefeea3ee2bdf4550f1d002ca4c40cb5b7d98cf2..d63e172a5236d8fb10819bf4da93bd0868661761 100644 (file)
@@ -1220,7 +1220,14 @@ def revert_inset_info(document):
         arg = ''
         for k in range(i, j+1):
             if document.body[k].startswith("arg"):
-                arg = document.body[k][3:].strip().strip('"')
+                arg = document.body[k][3:].strip()
+                # remove embracing quotation marks
+                if arg[0] == '"':
+                    arg = arg[1:]
+                if arg[len(arg) - 1] == '"':
+                    arg = arg[:len(arg) - 1]
+                # \" to straight quote
+                arg = arg.replace(r'\"','"')
             if document.body[k].startswith("type"):
                 type = document.body[k][4:].strip().strip('"')
         # I think there is a newline after \\end_inset, which should be removed.
index f568259bbb7152e89878d162f48618859abe782d..79eab0492dcbbbf75e613fe17fd848605d358d85 100644 (file)
@@ -54,6 +54,9 @@ What's new
 - Removed "NoStyle Abstract" from AMS book class, which does have an
   abstract.
 
+- Fixed reversion of info insets to LyX format 1.5.x. This bug blocked the
+  reversion of the User Guide to LyX 1.5.
+
 
 * USER INTERFACE
 
@@ -62,6 +65,7 @@ What's new
 - Fix crash when undoing a math operation while the outline pane was open
   (bug 5491).
 
+
 * DOCUMENTATION AND LOCALIZATION
 
 - LyX man page: Small formatting fix.