]> git.lyx.org Git - features.git/commit
Just a bit of safety here.
authorRichard Heck <rgheck@comcast.net>
Fri, 5 Nov 2010 16:43:30 +0000 (16:43 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 5 Nov 2010 16:43:30 +0000 (16:43 +0000)
commit6cc1d31e38a0ab59d8e1ac3c20dd8d9dca554fbe
treecdaa902d8b1e60577d550b8bc0fe8333a28f2193
parentf93c44791d8d4a4396a9ceb400d597e702d53f74
Just a bit of safety here.

This 0 default for end is wrong. You should be able to do:
  find_token(lines, token, 0, 0)
and have that return -1. As it is, this is equivalent to:
  find_token(lines, token, 0, len(lines))
But I am afraid to change the default, in case something in lyx_1.2.py
relies upon it somehow.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36125 a592a061-630c-0410-9148-cb99ea01b6c8
lib/lyx2lyx/parser_tools.py