Abstract doesn't work correctly with certain characters
Suppose I have an indexed test file with following lines:
test.txt
a-b
a--b
a---b
a+b
a++b
a+++b
a_b
a__b
a___b
a.b
a..b
a...b
a=b
a==b
a===b
a#b
a##b
a###b
a,b
a,,b
a,,,b
Now if I search recollq -A 'a'
the abstract looks something like this:
a-b a-b a-b a+b a+b a+b a_b a_b a_b
etc.
The middle characters are lost in the abstract. This can be confusing if the real result is e.g. firstname__lastname
and the matching snippet is shown as firstname_lastname
. The -d
shows the correct line.
I have tested this with version 1.34.3 and also compiling from git the current master with Xapian 1.4.22. I did not test all special characters so there are probably more examples of this.