]> git.lyx.org Git - features.git/commitdiff
Silly typos. Thanks, Stephan.
authorRichard Heck <rgheck@comcast.net>
Tue, 18 Jan 2011 23:11:27 +0000 (23:11 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 18 Jan 2011 23:11:27 +0000 (23:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37256 a592a061-630c-0410-9148-cb99ea01b6c8

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)
 
 
 #