Move function out of loop

This commit is contained in:
Juergen Spitzmueller 2019-03-11 10:37:33 +01:00
parent 3c83f01f1b
commit ef9e73d7fe

View File

@ -669,7 +669,7 @@ def revert_language(document, lyxname, babelname, polyglossianame):
while True:
i = find_token(document.body, '\\lang', i)
if i == -1:
return
break
if document.body[i].startswith('\\lang %s' % lyxname):
secondary = True
if with_polyglossia: