mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Fix conversion of beamer block titles when the language is switched at the beginning of the title
This commit is contained in:
parent
bfc4af2d01
commit
4066fcac16
@ -3070,6 +3070,10 @@ def convert_beamerblocks(document):
|
||||
parend = parent[2]
|
||||
j = parend
|
||||
if i != -1:
|
||||
# If the paragraph starts with a language switch, adjust parbeg
|
||||
if len(document.body[parbeg]) == 0 and parbeg < parend \
|
||||
and document.body[parbeg + 1].startswith("\\lang"):
|
||||
parbeg += 2
|
||||
if document.body[parbeg] == "\\begin_inset ERT":
|
||||
ertcontfirstline = parbeg + 5
|
||||
lastertbeg = -1
|
||||
|
Loading…
Reference in New Issue
Block a user