]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/layout2layout.py
Minor updates to XHTML info.
[lyx.git] / lib / scripts / layout2layout.py
index 71f0c9fc543ae4442e454fcb285afea3745c3513..0c85e57ad7f62850dbee0309ec33f78b6fdb516f 100644 (file)
@@ -88,6 +88,15 @@ 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.
+
+# Incremented to format 27, 4 June 2010 by rgh
+# Added RequiredArgs tag.
+
 # Do not forget to document format change in Customization
 # Manual (section "Declaring a new text class").
 
@@ -95,7 +104,7 @@ import os, re, string, sys
 # development/tools/updatelayouts.sh script to update all
 # layout files to the new format.
 
-currentFormat = 24
+currentFormat = 27
 
 
 def usage(prog_name):
@@ -266,6 +275,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 <= 26:
+            i += 1
+            continue
 
         if format == 23:
           match = re_Float.match(lines[i])