[LyX/master] Update layouts

Enrico Forestieri forenr at lyx.org
Sun Sep 27 19:37:20 UTC 2020


On Sun, Sep 27, 2020 at 09:24:37PM +0200, Enrico Forestieri wrote:
> 
> I think the attached patch
> is what is missing.

Sorry, there was a colon missing in the "if" line. Corrected patch attached.

-- 
Enrico
-------------- next part --------------
diff --git a/lib/scripts/layout2layout.py b/lib/scripts/layout2layout.py
index 74119bb678..50b02e79a1 100644
--- a/lib/scripts/layout2layout.py
+++ b/lib/scripts/layout2layout.py
@@ -538,6 +538,11 @@ def convert(lines, end_format):
                 i += 1
             continue
 
+        if 82 <= format <= 84:
+            # nothing to do.
+            i += 1
+            continue
+
         if format == 81:
             match = re.compile(b'^(\\s*Header\\s+)("?\\w+"?)', re.IGNORECASE).match(lines[i])
             if match:


More information about the lyx-devel mailing list