"Verteiler": "cc",
"Gruss": "Closing"}
i = 0
- while 1:
+ while True:
i = find_token(document.body, "\\begin_layout", i)
if i == -1:
break
pass
i = 0
- while 1:
+ while True:
i = find_token(document.body, '\\begin_inset Info', i)
if i == -1:
return
def convert_optarg(document):
" Convert \\begin_inset OptArg to \\begin_inset Argument "
i = 0
- while 1:
+ while True:
i = find_token(document.body, '\\begin_inset OptArg', i)
if i == -1:
return
def revert_argument(document):
" Convert \\begin_inset Argument to \\begin_inset OptArg "
i = 0
- while 1:
+ while True:
i = find_token(document.body, '\\begin_inset Argument', i)
if i == -1:
return
def revert_makebox(document):
" Convert \\makebox to TeX code "
i = 0
- while 1:
+ while True:
i = find_token(document.body, '\\begin_inset Box', i)
if i == -1:
break
def convert_use_makebox(document):
" Adds use_makebox option for boxes "
i = 0
- while 1:
+ while True:
i = find_token(document.body, '\\begin_inset Box', i)
if i == -1:
return
for cmd in cmds:
i = 0
oldcmd = "LatexCommand " + cmd
- while 1:
+ while True:
# It seems better to look for this, as most of the reference
# insets won't be ones we care about.
i = find_token(document.body, oldcmd, i)
def remove_Nameref(document):
" Convert Nameref commands to nameref commands "
i = 0
- while 1:
+ while True:
# It seems better to look for this, as most of the reference
# insets won't be ones we care about.
i = find_token(document.body, "LatexCommand Nameref" , i)
def revert_rule(document):
" Revert line insets to Tex code "
i = 0
- while 1:
+ while True:
i = find_token(document.body, "\\begin_inset CommandInset line" , i)
if i == -1:
return
" Convert subscript/superscript inset to TeX code "
i = 0
foundsubscript = False
- while 1:
+ while True:
i = find_token(document.body, '\\begin_inset script', i)
if i == -1:
break