]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/layout2layout.py
Forgot this bit from last commit.
[lyx.git] / lib / scripts / layout2layout.py
index e628a300fdfd5bf3b837d5b0bfea7e91c46c5d95..e10bfc8118cd701dbe79f5011db6d5cfe2d0acf3 100644 (file)
@@ -25,7 +25,15 @@ import os, re, string, sys
 
 # Incremented to format 7, 24 March 2008 by rgh
 # AddToPreamble tag added to layout files
-currentFormat = 7
+
+# Incremented to format 8, 25 July 2008 by rgh
+# UseModule tag added to layout files
+# CopyStyle added to InsetLayout
+
+# Incremented to format 9, 5 October 2008 by rgh
+# ForcePlain and CustomPars tags added to InsetLayout
+
+currentFormat = 9
 
 
 def usage(prog_name):
@@ -168,11 +176,8 @@ def convert(lines):
                 i += 1
             continue
 
-        if format == 6:
-          i += 1
-          continue
-
-        if format == 5:
+        # These just involved new features, not any changes to old ones
+        if format >= 5 and format <= 8:
           i += 1
           continue