X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..b95b09260db87f6665bfcef3fb4f7c19f8acb666:/src/search/custom.py 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