mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
More beamer reversion fixes
This commit is contained in:
parent
0c06a212e3
commit
3cc6dae63f
@ -2832,7 +2832,20 @@ def revert_overprint(document):
|
||||
subst = ["\\begin_layout Standard"] + put_cmd_in_ert("\\begin{overprint}")
|
||||
esubst = ["\\end_layout", "", "\\begin_layout Standard"] + put_cmd_in_ert("\\end{overprint}")
|
||||
endseq = endseq + len(esubst) - len(document.body[j : j])
|
||||
document.body[j : j] = esubst
|
||||
if document.body[j] == "\\end_deeper":
|
||||
document.body[j : j] = ["\\end_deeper", ""] + esubst
|
||||
else:
|
||||
document.body[j : j] = esubst
|
||||
r = i
|
||||
while r < j:
|
||||
if document.body[r] == "\\begin_deeper":
|
||||
s = find_end_of(document.body, r, "\\begin_deeper", "\\end_deeper")
|
||||
if s != -1:
|
||||
document.body[r] = ""
|
||||
document.body[s] = ""
|
||||
r = s
|
||||
continue
|
||||
r = r + 1
|
||||
argbeg = find_token(document.body, "\\begin_inset Argument 1", i, j)
|
||||
if argbeg != -1:
|
||||
argend = find_end_of_inset(document.body, argbeg)
|
||||
|
Loading…
Reference in New Issue
Block a user