]> git.lyx.org Git - features.git/commitdiff
Fix conversion of beamer block titles when the language is switched at the beginning...
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 25 Nov 2014 16:47:14 +0000 (17:47 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 25 Nov 2014 18:18:22 +0000 (19:18 +0100)
lib/lyx2lyx/lyx_2_1.py
status.21x

index e6d0bdca5bdee0d679f34a074666021e71510558..2d523dbcfd66296dab3fb5b62b6312e1eefee5b6 100644 (file)
@@ -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
index 9ece51d7e9a69496602daf7a12936f846066c769..5f87cc5600ace54730aa97c9384587cb2c534e2d 100644 (file)
@@ -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