mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Move function out of loop
This commit is contained in:
parent
3c83f01f1b
commit
ef9e73d7fe
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user