]> git.lyx.org Git - lyx.git/commitdiff
Some comments on future cleanup.
authorRichard Heck <rgheck@comcast.net>
Wed, 4 Jun 2008 22:37:09 +0000 (22:37 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 4 Jun 2008 22:37:09 +0000 (22:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25126 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_1_6.py

index b6ab1852188e0747e7676d11cdb468ecb6913343..bff5267c216c352ae564da19f64db429f0c42e40 100644 (file)
@@ -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