Switch to unified view

a/src/rcldb/rclabsfromtext.cpp b/src/rcldb/rclabsfromtext.cpp
...
...
49
//// Fragment cleanup
49
//// Fragment cleanup
50
// Chars we turn to spaces in the Snippets
50
// Chars we turn to spaces in the Snippets
51
static const string cstr_nc("\n\r\x0c\\");
51
static const string cstr_nc("\n\r\x0c\\");
52
// Things that we don't want to repeat in a displayed snippet.
52
// Things that we don't want to repeat in a displayed snippet.
53
// e.g.  > > > > > >
53
// e.g.  > > > > > >
54
static const string punctcls("[<>.-_+,#*=]");
54
static const string punctcls("[-<>._+,#*=|]");
55
static const string punctRE = "(" + punctcls +  " *)(" + punctcls + " *)+";
55
static const string punctRE = "(" + punctcls +  " *)(" + punctcls + " *)+";
56
static std::regex fixfrag_re(punctRE);
56
static std::regex fixfrag_re(punctRE);
57
static string fixfrag(const string& infrag)
57
static string fixfrag(const string& infrag)
58
{
58
{
59
    return std::regex_replace(neutchars(infrag, cstr_nc), fixfrag_re, "$2");
59
    return std::regex_replace(neutchars(infrag, cstr_nc), fixfrag_re, "$2");