--- a/views/result.tpl
+++ b/views/result.tpl
@@ -1,5 +1,4 @@
%import shlex, unicodedata
-%def strip_accents(s): return ''.join((c for c in unicodedata.normalize('NFD', s) if unicodedata.category(c) != 'Mn'))
<div class="search-result">
%number = (query['page'] - 1)*config['perpage'] + i + 1
<div class="search-result-number"><a href="#r{{d['sha']}}">#{{number}}</a></div>
@@ -28,12 +27,6 @@
</div>
%end
<div class="search-result-date">{{d['time']}}</div>
- %for q in shlex.split(query['query'].replace("'","\\'")):
- %if not q == "OR":
- % w = strip_accents(q.decode('utf-8').lower()).encode('utf-8')
- % d['snippet'] = d['snippet'].replace(w,'<span class="search-result-highlight">'+w+'</span>')
- %end
- %end
<div class="search-result-snippet">{{!d['snippet']}}</div>
</div>
<!-- vim: fdm=marker:tw=80:ts=4:sw=4:sts=4:et:ai