From: Juergen Spitzmueller Date: Fri, 28 Dec 2018 06:30:34 +0000 (+0100) Subject: lyx2lyx: fix float reversion routines X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3c6ab6d2b7e7683278675c1c7336bb3e3310f87c;p=features.git lyx2lyx: fix float reversion routines This jumped too wide with two subsequent floats. --- diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index 73fbdf66e7..7306193b03 100644 --- a/lib/lyx2lyx/lyx_2_4.py +++ b/lib/lyx2lyx/lyx_2_4.py @@ -552,7 +552,7 @@ def revert_floatpclass(document): k = find_token(document.body, 'placement document', i, i + 2) if k != -1: del document.body[k] - i = j + i += 1 continue del document.body[k] @@ -587,7 +587,7 @@ def revert_floatalignment(document): l = find_token(document.body, "\\begin_layout Plain Layout", i, j) if l == -1: document.warning("Can't find float layout!") - i = j + i += 1 continue alcmd = [] if alignment == "left": @@ -598,7 +598,7 @@ def revert_floatalignment(document): alcmd = put_cmd_in_ert("\\raggedleft{}") if len(alcmd) > 0: document.body[l+1:l+1] = alcmd - i = j + i += 1 def revert_tuftecite(document):