diff --git a/src/search.cpp b/src/search.cpp index a7efda4..049b06c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -162,7 +162,7 @@ void cleanup_text(string &text) } pos = 0; - while ((pos = text.find('\n', pos)) != string::npos) + while ((pos = text.find_first_of("\n\t", pos)) != string::npos) { text.replace(pos, 1, " "); }