]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/prefs2prefs.py
Update manual from Ignatio
[lyx.git] / lib / scripts / prefs2prefs.py
index eaf39fd015b169c1b2ff4a7c750ead828759915c..5bc25c1b142289fe89f4c334268ddbfe290242dc 100644 (file)
@@ -104,12 +104,12 @@ def update_format(lines):
                return
 
        line = lines[format_line]
-       m = re_format.search(l)
+       m = re_format.search(line)
        if not m:
                sys.stderr.write("Couldn't match format line!\n" + line + "\n")
                sys.exit(1)
        format = int(m.group(1))
-       lines[i] = "Format " + str(format + 1)
+       lines[format_line] = "Format " + str(format + 1)
 
 
 #