diff options
Diffstat (limited to 'notmuch-search.c')
-rw-r--r-- | notmuch-search.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/notmuch-search.c b/notmuch-search.c index 91b5d105..0262eb30 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -41,7 +41,9 @@ sanitize_string (const void *ctx, const char *str) loop = out = talloc_strdup (ctx, str); for (; *loop; loop++) { - if ((unsigned char)(*loop) < 32) + if (*loop == '\t' || *loop == '\n') + *loop = ' '; + else if ((unsigned char)(*loop) < 32) *loop = '?'; } return out; |