From 6255d665afc511881dd4c4721c114a7deaaac6de Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 30 May 2021 14:37:05 +0200 Subject: [PATCH] Replace tabs with a space in search::cleanup(). --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, " "); }