From: Richard Heck Date: Thu, 4 Nov 2010 19:42:03 +0000 (+0000) Subject: Simplify convert_mathdots. X-Git-Tag: 2.0.0~2027 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=438fc55e2c0311655714c62ea1889f76c32096e1;p=features.git Simplify convert_mathdots. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36088 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 02bc868863..4232f16f9a 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1741,11 +1741,9 @@ def revert_flexnames(document): def convert_mathdots(document): " Load mathdots automatically " - while True: - i = find_token(document.header, "\\use_esint" , 0) - if i != -1: - document.header.insert(i + 1, "\\use_mathdots 1") - break + i = find_token(document.header, "\\use_esint" , 0) + if i != -1: + document.header.insert(i + 1, "\\use_mathdots 1") def revert_mathdots(document):