mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix conversion of beamer block arguments where the overlay argument and the closing title argument bracket share the same ERT
Fixes: #9411
This commit is contained in:
parent
24d3236493
commit
b47b4299e0
@ -3216,11 +3216,19 @@ def convert_beamerblocks(document):
|
|||||||
# Multiline ERT. Might contain TeX code. Embrace in ERT.
|
# Multiline ERT. Might contain TeX code. Embrace in ERT.
|
||||||
document.body[ertcontlastline : ertcontlastline + 1] = [
|
document.body[ertcontlastline : ertcontlastline + 1] = [
|
||||||
document.body[ertcontlastline], '\\end_layout', '', '\\end_inset']
|
document.body[ertcontlastline], '\\end_layout', '', '\\end_inset']
|
||||||
document.body[ertcontdivline : ertcontdivline + 1] = [document.body[ertcontdivline][:tok],
|
if ertcontdivline == ertcontfirstline:
|
||||||
'\\end_layout', '', '\\end_inset', '', '', '\\begin_inset Argument 1',
|
document.body[ertcontdivline : ertcontdivline + 1] = [document.body[ertcontdivline][:tok],
|
||||||
'status collapsed', '', '\\begin_layout Plain Layout',
|
'\\end_layout', '', '\\end_inset', '', '', '\\begin_inset Argument 1',
|
||||||
'\\begin_inset ERT', '', 'status open' '', '\\begin_layout Plain Layout',
|
'status collapsed', '', '\\begin_layout Plain Layout',
|
||||||
document.body[ertcontdivline][tok + 2:]]
|
'\\begin_inset ERT', '', 'status open' '', '\\begin_layout Plain Layout',
|
||||||
|
document.body[ertcontdivline][tok + 2:]]
|
||||||
|
else:
|
||||||
|
document.body[ertcontdivline : ertcontdivline + 1] = [document.body[ertcontdivline][:tok],
|
||||||
|
'\\end_layout', '', '\\end_inset', '',
|
||||||
|
'\\end_layout', '', '\\end_inset', '', '', '\\begin_inset Argument 1',
|
||||||
|
'status collapsed', '', '\\begin_layout Plain Layout',
|
||||||
|
'\\begin_inset ERT', '', 'status open' '', '\\begin_layout Plain Layout',
|
||||||
|
document.body[ertcontdivline][tok + 2:]]
|
||||||
else:
|
else:
|
||||||
document.body[ertcontdivline : ertcontdivline + 1] = [document.body[ertcontdivline][:tok],
|
document.body[ertcontdivline : ertcontdivline + 1] = [document.body[ertcontdivline][:tok],
|
||||||
'\\end_layout', '', '\\end_inset', '', '', '\\begin_inset Argument 1',
|
'\\end_layout', '', '\\end_inset', '', '', '\\begin_inset Argument 1',
|
||||||
|
Loading…
Reference in New Issue
Block a user