From b5212255e57dfd025a0d6d6d1ab5636c989fb3bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 31 Jan 2007 20:16:23 +0000 Subject: [PATCH] fix bug in modification made in changeset 16962 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16988 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_5.py b/lib/lyx2lyx/lyx_1_5.py index 9a9e480d3e..0669620367 100644 --- a/lib/lyx2lyx/lyx_1_5.py +++ b/lib/lyx2lyx/lyx_1_5.py @@ -717,10 +717,10 @@ def convert_lyxline(document): # before \lyxline is therefore removed to get the same output. fontsizes = ["tiny", "scriptsize", "footnotesize", "small", "normalsize", "large", "Large", "LARGE", "huge", "Huge"] - for n in range(0, len(fontsizes)-1): + for n in range(0, len(fontsizes)): i = 0 k = 0 - while 1: + while i < len(document.body): i = find_token(document.body, "\\size " + fontsizes[n], i) k = find_token(document.body, "\\lyxline",i) # the corresponding fontsize command is always 2 lines before the \lyxline -- 2.39.2