X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..b048f3425b94d66c7f8eae2005de78bf94896f4f:/src/search/custom.py?ds=sidebyside diff --git a/src/search/custom.py b/src/search/custom.py index dfface953..da21e019e 100644 --- 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