Switch to unified view

a/src/qtgui/ssearch_w.cpp b/src/qtgui/ssearch_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.23 2007-10-05 08:03:01 dockes Exp $ (C) 2006 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.24 2007-10-19 15:25:19 dockes Exp $ (C) 2006 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
105
    }
105
    }
106
106
107
    // If there is no white space inside the query, then the user
107
    // If there is no white space inside the query, then the user
108
    // certainly means it as a phrase.
108
    // certainly means it as a phrase.
109
    bool isreallyaphrase = false;
109
    bool isreallyaphrase = false;
110
    if (u8.find_first_of(" \t") == string::npos)
110
    if (u8.find_first_of(" \t\r\n") == string::npos)
111
        isreallyaphrase = true;
111
        isreallyaphrase = true;
112
112
113
    // Maybe add automatic phrase ? For ALL and ANY, and not if
113
    // Maybe add automatic phrase ? For ALL and ANY, and not if
114
    // there is already a phrase or wildcard terms.
114
    // there is already a phrase or wildcard terms.
115
    if (!isreallyaphrase && 
115
    if (!isreallyaphrase &&