fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Last Piston view replaced using OAuthlib.
[wolnelektury.git]
/
src
/
search
/
custom.py
diff --git
a/src/search/custom.py
b/src/search/custom.py
index
dfface9
..
da21e01
100644
(file)
--- a/
src/search/custom.py
+++ b/
src/search/custom.py
@@
-184,5
+184,6
@@
class CustomSolrInterface(sunburnt.SolrInterface):
off = -start
snip = snip[:e + off] + mark[1] + snip[e + off:]
snip = snip[:s + off] + mark[0] + snip[s + off:]
+ snip = re.sub('%s[ \t\n]+%s' % (mark[1], mark[0]), " ", snip)
return snip