commit 42c51e7169ee86948a620d9e2255c264a504f82c
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Nov 25 17:47:14 2014 +0100
Fix conversion of beamer block titles when the language is switched at the
beginning of the title
diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py
index e6d0bdc..2d523db 100644
--- a/lib/lyx2lyx/lyx_2_1.py
+++ b/lib/lyx2lyx/lyx_2_1.py
@@ -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
diff --git a/status.21x b/status.21x
index 9ece51d..5f87cc5 100644
--- a/status.21x
+++ b/status.21x
@@ -105,6 +105,9 @@ What's new
- Fix import of chunk insets containing newlines (bug 9300).
+- Fix import of ERT beamer block titles which are preceeded by a
+ language switch.
+
* USER INTERFACE