From 292717949970b23dd581fe16e17c2ef795adec5b Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 28 Dec 2018 07:30:34 +0100 Subject: [PATCH] lyx2lyx: fix float reversion routines This jumped too wide with two subsequent floats. --- lib/lyx2lyx/lyx_2_4.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.39.2