[LyX/master] Fix the layout2layout script

Enrico Forestieri forenr at lyx.org
Mon Sep 28 20:03:24 UTC 2020


commit 77f9858388f5ca1980de8fcb2789c430995337b4
Author: Enrico Forestieri <forenr at lyx.org>
Date:   Mon Sep 28 22:29:28 2020 +0200

    Fix the layout2layout script
    
    It was not correctly updated at dab71087, ad18c194, and 6998e764.
---
 lib/scripts/layout2layout.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/scripts/layout2layout.py b/lib/scripts/layout2layout.py
index 74119bb..fd0c193 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-cvs mailing list