# Private helper functions
def find_end_of_inset(lines, i):
- "Finds the matching \end_inset"
+ r"Finds the matching \end_inset"
return find_end_of(lines, i, "\\begin_inset", "\\end_inset")
" Change inset Graphics."
lines = document.body
i = 0
- while 1:
+ while True:
i = find_token(lines, "\\begin_inset Graphics", i)
if i == -1:
break
" Change tabular."
lines = document.body
i = 0
- while 1:
+ while True:
i = find_token(lines, "<column", i)
if i == -1:
break