]> git.lyx.org Git - features.git/commitdiff
Forgot this bit from last commit.
authorRichard Heck <rgheck@comcast.net>
Sun, 5 Oct 2008 19:39:09 +0000 (19:39 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 5 Oct 2008 19:39:09 +0000 (19:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26758 a592a061-630c-0410-9148-cb99ea01b6c8

lib/scripts/layout2layout.py

index 7254b0c212e207fe2da06300bfb61751585f5008..e10bfc8118cd701dbe79f5011db6d5cfe2d0acf3 100644 (file)
@@ -29,7 +29,11 @@ import os, re, string, sys
 # Incremented to format 8, 25 July 2008 by rgh
 # UseModule tag added to layout files
 # CopyStyle added to InsetLayout
-currentFormat = 8
+
+# Incremented to format 9, 5 October 2008 by rgh
+# ForcePlain and CustomPars tags added to InsetLayout
+
+currentFormat = 9
 
 
 def usage(prog_name):
@@ -172,15 +176,8 @@ def convert(lines):
                 i += 1
             continue
 
-        if format == 7:
-          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