Commit 276ba964 authored by Bartek Górny's avatar Bartek Górny

highlighting found words in a case-insensitive way

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe6ee055
......@@ -43,7 +43,7 @@ class Part:
def generateParts(context,text,sw,tags,trail,maxlines):
par=Part(tags,trail)
sw=sw.translate(tr).strip().split()
test=lambda w:w.translate(tr).strip() in sw
test=lambda w:w.translate(tr).strip().lower() in sw
i=0
for aw in text:
if i==maxlines:
......
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