From e14f384a2c7d55b8f8d2b53ed95fa66f94c78c83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 17 Mar 2008 14:12:42 +0000 Subject: [PATCH] * lib/lyx2lyx/lyx_1_6.py: - fix error in convert_subfig triggered by the User Guide. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23792 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index f308a0c5cf..cbb7288c89 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1258,15 +1258,15 @@ def convert_subfig(document): i = i + 1 continue l = find_token(document.body, '\tsubcaptionText', i, j) - caption = get_value(document.body, '\tsubcaptionText', i, j).strip('"') + caption = document.body[l][16:].strip('"') savestr = document.body[i] + del document.body[l] + del document.body[k] document.body[i] = '\\begin_inset Float figure\nwide false\nsideways false\n' \ 'status open\n\n\\begin_layout PlainLayout\n\\begin_inset Caption\n\n\\begin_layout PlainLayout\n' \ + caption + '\n\\end_layout\n\n\\end_inset\n\n\\end_layout\n\n\\begin_layout PlainLayout\n' + savestr savestr = document.body[j] document.body[j] = '\n\\end_layout\n\n\\end_inset\n' + savestr - del document.body[k] - del document.body[l] def revert_subfig(document): -- 2.39.2