summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier R <olivier.noreply@gmail.com>2012-07-09 16:50:03 +0200
committerLászló Németh <nemeth@numbertext.org>2012-07-09 16:50:03 +0200
commitaeab0ff2bce6b469e99f5d1362f1d6dbe2cfba54 (patch)
tree0217c2158828e0a3765687f694df0176a5449822
parent7dc1c30bd5d3ca76a5a60f6e15c19974263c7ff7 (diff)
fix: suggestion with capital is based on selected back reference group
-rw-r--r--pythonpath/lightproof_impl___implname__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pythonpath/lightproof_impl___implname__.py b/pythonpath/lightproof_impl___implname__.py
index 9dd70fc..1f6b376 100644
--- a/pythonpath/lightproof_impl___implname__.py
+++ b/pythonpath/lightproof_impl___implname__.py
@@ -162,7 +162,7 @@ def proofread( nDocId, TEXT, LOCALE, nStartOfSentencePos, nSuggestedSentenceEndP
aErr.nErrorStart += m.start(i[4])
aErr.nErrorType = PROOFREADING
aErr.aRuleIdentifier = str(i[0])
- iscap = (i[-1] and m.group(0)[0:1].isupper())
+ iscap = (i[-1] and m.group(i[4])[0:1].isupper())
if i[1][0:1] == "=":
aErr.aSuggestions = tuple(cap(eval(i[1][1:]).split("\n"), iscap, LOCALE))
elif i[1] == "_":