]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/parser_tools.py
replace valignment "center" by "middle" in tables
[lyx.git] / lib / lyx2lyx / parser_tools.py
index 312fa4fa357af8ebc8f44274b12607f877c140a5..465e174d3a863dce9645e04948f926a7105bd2a5 100644 (file)
@@ -173,22 +173,13 @@ def find_nonempty_line(lines, start, end = 0):
            return i
     return -1
 
-def set_comment(lines, number):
-    x = int(number)
-    if x < 216:
-       # It is not worth the trouble to handle this case
-       return
-    elif x < 220:
-       version = "1.1"
-    else:
-       version = str((x-220)/10.0+1.2)
-
+def set_comment(lines, version):
     lines[0] = "#LyX %s created this file. For more info see http://www.lyx.org/" % version
     if lines[1][0] == '#':
        del lines[1]
 
 def set_format(lines, number):
     if int(number) <= 217:
-       number = float(number)/100
+        number = float(number)/100
     i = find_token(lines, "\\lyxformat", 0)
     lines[i] = "\\lyxformat %s" % number