Minor cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36069 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-04 16:01:47 +00:00
parent b04159cf21
commit 2287446d04

View File

@ -1177,19 +1177,20 @@ def revert_notefontcolor(document):
def revert_turkmen(document): def revert_turkmen(document):
"Set language Turkmen to English" "Set language Turkmen to English"
i = 0
if document.language == "turkmen": if document.language == "turkmen":
document.language = "english" document.language = "english"
i = find_token(document.header, "\\language", 0) i = find_token(document.header, "\\language", 0)
if i != -1: if i != -1:
document.header[i] = "\\language english" document.header[i] = "\\language english"
j = 0 j = 0
while True: while True:
j = find_token(document.body, "\\lang turkmen", j) j = find_token(document.body, "\\lang turkmen", j)
if j == -1: if j == -1:
return return
document.body[j] = document.body[j].replace("\\lang turkmen", "\\lang english") document.body[j] = document.body[j].replace("\\lang turkmen", "\\lang english")
j = j + 1 j += 1
def revert_fontcolor(document): def revert_fontcolor(document):