Commit 1e8bf3ae authored by Bartek Górny's avatar Bartek Górny

made highlighting case-insensitive

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11051 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dab027b3
...@@ -42,7 +42,7 @@ class Part: ...@@ -42,7 +42,7 @@ class Part:
def generateParts(context,text,sw,tags,trail,maxlines): def generateParts(context,text,sw,tags,trail,maxlines):
par=Part(tags,trail) par=Part(tags,trail)
sw=sw.translate(tr).strip().split() sw=sw.translate(tr).strip().lower().split()
test=lambda w:w.translate(tr).strip().lower() in sw test=lambda w:w.translate(tr).strip().lower() in sw
i=0 i=0
length=len(text) length=len(text)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment