]> 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 16:47:14 +0000 (17:47 +0100)
lib/lyx2lyx/lyx_2_1.py

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