diff options
author | blackbird <blackbird@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-05-25 09:14:41 +0000 |
---|---|---|
committer | blackbird <blackbird@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-05-25 09:14:41 +0000 |
commit | 6c2e9f449ffe771a7fbffae85463b10ddb6d54ea (patch) | |
tree | 6a4c342105995d9f3b5e0ececf7a2330e9d45c7b /sandbox/py-rest-doc/sphinx/environment.py | |
parent | e31b2399dd580c09230c4867a7f697735c9205b4 (diff) | |
download | docutils-6c2e9f449ffe771a7fbffae85463b10ddb6d54ea.tar.gz |
fixed find_keywords, added style for errors
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5140 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/environment.py')
-rw-r--r-- | sandbox/py-rest-doc/sphinx/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/py-rest-doc/sphinx/environment.py b/sandbox/py-rest-doc/sphinx/environment.py index db29c0378..6eefcc24c 100644 --- a/sandbox/py-rest-doc/sphinx/environment.py +++ b/sandbox/py-rest-doc/sphinx/environment.py @@ -624,7 +624,7 @@ class BuildEnvironment: return None, None return newname, self.descrefs[newname] - def find_keyword(self, keyword, avoid_fuzzy=False): + def find_keyword(self, keyword, avoid_fuzzy=False, cutoff=0.6, n=20): """ Find keyword matches for a keyword. If there's an exact match, just return it, else return a list of fuzzy matches if avoid_fuzzy isn't True. |