]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/prefs2prefs_prefs.py
#7894 explain the status column of mac bindings
[lyx.git] / lib / scripts / prefs2prefs_prefs.py
index ff447632802c989f583e24327e14ae884f475de8..5ce10511bce434564cb85dde500db2c19ccb39e9 100644 (file)
 #   We must add the flag zipped=native to formats that
 #   were previously hardcoded in the C++ source: dia.
 
+# Incremented to format 4, r40028 by vfr
+#   Remove support for default paper size.
+
+# Incremented to format 5, r40030 by vfr
+#   Add a default length unit.
+#   No conversion necessary.
+
+
 import re
 
 
@@ -118,6 +126,12 @@ def zipped_native(line):
        return (True,
                "\\Format %s \"%s,zipped=native\"" % (fmat, opts))
 
+def remove_default_papersize(line):
+       if not line.startswith("\\default_papersize"):
+               return no_match
+       return (True, "")
+
+
 ########################
 
 
@@ -131,4 +145,6 @@ conversions = [
        ]],
        [  2, []],
        [  3, [ zipped_native ]],
+       [  4, [ remove_default_papersize ]],
+       [  5, []],
 ]