X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a87d0e99a355a5f36d7704b5cf1dc2d3f814b910..a8ecd9c5f7bba62b02bf9c9a75a6070eda115184:/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