From: Carl Worth <cworth@cworth.org>
Date: Wed, 14 Oct 2009 21:06:06 +0000 (-0700)
Subject: [sup-compat] Don't trim trailing whitespace on line introducing quotation.
X-Git-Tag: 0.1~868
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=6363ab32eab64c1618f8d257953f31877d09b2a9;p=notmuch

[sup-compat] Don't trim trailing whitespace on line introducing quotation.

Ignoring this whitespace seems like a good idea to me, but it's
interfering with my comparisons with sup since sup doesn't do this.

This might be a commit worth dropping in the future since it exists
only for pedantic consistency with sup and not for any reason of its
own.
---

diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc
index dfcb3ba5..bb393641 100644
--- a/notmuch-index-message.cc
+++ b/notmuch-index-message.cc
@@ -377,9 +377,6 @@ gen_terms_body_str (Xapian::TermGenerator term_gen,
 	    continue;
 
 	/* Also skip lines introducing a quote on the next line. */
-	while (line_end > line && isspace (*line_end))
-	    line_end--;
-
 	if (*line_end == ':' && *next_line == '>')
 	    continue;