]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/layout2layout.py
Spanish manuals: updates by Ignacio and me
[lyx.git] / lib / scripts / layout2layout.py
index 71f0c9fc543ae4442e454fcb285afea3745c3513..782a02637ec1b182520946b05574b0e60ae49d13 100644 (file)
@@ -88,6 +88,12 @@ import os, re, string, sys
 # Changed LaTeXBuiltin tag to NeedsFloatPkg and
 # added new tag ListCommand.
 
+# Incremented to format 25, 12 March 2010 by rgh
+# Added RefPrefix tag for layouts and floats.
+
+# Incremented to format 26, 29 March 2010 by rgh
+# Added CiteFormat.
+
 # Do not forget to document format change in Customization
 # Manual (section "Declaring a new text class").
 
@@ -95,7 +101,7 @@ import os, re, string, sys
 # development/tools/updatelayouts.sh script to update all
 # layout files to the new format.
 
-currentFormat = 24
+currentFormat = 26
 
 
 def usage(prog_name):
@@ -266,6 +272,11 @@ def convert(lines):
             while i < len(lines) and not re_EndBabelPreamble.match(lines[i]):
                 i += 1
             continue
+        
+        # Only new features
+        if format >= 24 and format <= 25:
+            i += 1
+            continue
 
         if format == 23:
           match = re_Float.match(lines[i])