]> git.lyx.org Git - features.git/blobdiff - lib/scripts/layout2layout.py
Bump layout format
[features.git] / lib / scripts / layout2layout.py
index 1c6f1ada09ef7e6d728b06794f4088e98d88c67b..113f99bf04fe1127b52e028e532a00d589e1f6d0 100644 (file)
@@ -141,6 +141,9 @@ import os, re, string, sys
 # Incremented to format 41, 20 November 2012 by spitz
 # New Argument syntax
 
+# Incremented to format 42, 22 December 2012 by spitz
+# New Style tag "ItemCommand"
+
 # Do not forget to document format change in Customization
 # Manual (section "Declaring a new text class").
 
@@ -148,7 +151,7 @@ import os, re, string, sys
 # development/tools/updatelayouts.sh script to update all
 # layout files to the new format.
 
-currentFormat = 41
+currentFormat = 42
 
 
 def usage(prog_name):
@@ -358,6 +361,11 @@ def convert(lines):
                 i += 1
             continue
 
+        if format == 41:
+            # nothing to do.
+            i += 1
+            continue
+
         if format == 40:
             # reset counters on Style beginning
             match = re_Style.match(lines[i])