From a54ede0aff459b8ec3200f1450f1b8afcdd17cb4 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 4 Jun 2008 22:37:09 +0000 Subject: [PATCH] Some comments on future cleanup. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25126 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index b6ab185218..bff5267c21 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1793,6 +1793,7 @@ def revert_external_embedding(document): revert_inset_embedding(document, 'External') +# FIXME This code can still be cleaned up a fair bit. def convert_subfig(document): " Convert subfigures to subfloats. " i = 0 @@ -1816,6 +1817,7 @@ def convert_subfig(document): del document.body[l] del document.body[k] addedLines = -2 + # savestr should no longer be needed here. subst = ['\\begin_inset Float figure', 'wide false', 'sideways false', 'status open', '', '\\begin_layout Plain Layout', '\\begin_inset Caption', '', '\\begin_layout Plain Layout', @@ -1824,6 +1826,7 @@ def convert_subfig(document): document.body[i : i+1] = subst addedLines += len(subst) - 1 endInset += addedLines + # There should be an easier way to do this. subst = ['', '\\end_inset', '', '\\end_layout', laststr] document.body[endInset : endInset+1] = subst addedLines += len(subst) - 1 -- 2.39.2