]> git.lyx.org Git - features.git/commitdiff
parser_tools.py (del_token): rename arguments to be coherent with other functions
authorJosé Matox <jamatos@lyx.org>
Thu, 27 Jul 2006 11:37:26 +0000 (11:37 +0000)
committerJosé Matox <jamatos@lyx.org>
Thu, 27 Jul 2006 11:37:26 +0000 (11:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14499 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/parser_tools.py

index c204cd73a32ab0e3d3802bfb07b97e0a339e9d9f..379f961bb325a15a73e1eb998fffbd81f9168e39 100644 (file)
@@ -118,13 +118,13 @@ def get_layout(line, default_layout):
     return default_layout
 
 
-def del_token(lines, token, i, j):
-    k = find_token_exact(lines, token, i, j)
+def del_token(lines, token, start, end):
+    k = find_token_exact(lines, token, start, end)
     if k == -1:
-        return j
+        return end
     else:
         del lines[k]
-        return j-1
+        return end - 1
 
 
 # Finds the paragraph that contains line i.