projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30ed705
)
Avoid trimming initial whitespace while looking for signatures.
author
Carl Worth
<cworth@cworth.org>
Wed, 14 Oct 2009 23:38:21 +0000
(16:38 -0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 14 Oct 2009 23:38:21 +0000
(16:38 -0700)
I ran into a message with an indented stack trace that my indexer
was mistaking for a signature.
notmuch-index-message.cc
patch
|
blob
|
history
diff --git
a/notmuch-index-message.cc
b/notmuch-index-message.cc
index 3270aac7cfcdc640d619b19d7ceef1f7170196cc..79ec81e40c50a956d510980be5bf4682666fffbf 100644
(file)
--- a/
notmuch-index-message.cc
+++ b/
notmuch-index-message.cc
@@
-379,8
+379,8
@@
gen_terms_body_str (Xapian::TermGenerator term_gen,
}
line_end = next_line - 1;
- /*
Trim whitespac
e. */
- while (*next_line
&& isspace (*next_line)
)
+ /*
Get to the next non-blank lin
e. */
+ while (*next_line
== '\n'
)
next_line++;
/* Skip lines that are quotes. */