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:
Juergen Spitzmueller 2015-02-13 16:01:57 +01:00
parent 24d3236493
commit b47b4299e0

View File

@ -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']
if ertcontdivline == ertcontfirstline:
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',
'status collapsed', '', '\\begin_layout Plain Layout', 'status collapsed', '', '\\begin_layout Plain Layout',
'\\begin_inset ERT', '', 'status open' '', '\\begin_layout Plain Layout', '\\begin_inset ERT', '', 'status open' '', '\\begin_layout Plain Layout',
document.body[ertcontdivline][tok + 2:]] 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',