From: Jürgen Spitzmüller Date: Tue, 11 Nov 2008 17:24:07 +0000 (+0000) Subject: * lyx_1_6.py: X-Git-Tag: 1.6.10~2652 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=24fe5b08c0e1dfb739738acb6fc995da7315d35f;p=features.git * lyx_1_6.py: - fix reversion of info insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27386 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index cefeea3ee2..d63e172a52 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -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. diff --git a/status.16x b/status.16x index f568259bbb..79eab0492d 100644 --- a/status.16x +++ b/status.16x @@ -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.