]> git.lyx.org Git - features.git/commitdiff
Simplify convert_mathdots.
authorRichard Heck <rgheck@comcast.net>
Thu, 4 Nov 2010 19:42:03 +0000 (19:42 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 4 Nov 2010 19:42:03 +0000 (19:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36088 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index 02bc8688630198168898824848961ad98a17eb8a..4232f16f9a4038f2a805fbc3952a7365a2da9678 100644 (file)
@@ -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):