ctx->state = SNIPPET_STATE_NEWLINE;
return;
}
+ if (target->chars_left == 0)
+ return;
+ target->chars_left--;
if (ctx->add_whitespace) {
str_append_c(target->snippet, ' ');
ctx->add_whitespace = FALSE;
- if (target->chars_left-- == 0)
+ if (target->chars_left == 0)
return;
+ target->chars_left--;
}
- if (target->chars_left == 0)
- return;
- target->chars_left--;
*count_r = uni_utf8_char_bytes(data[0]);
i_assert(*count_r <= size);
str_append_data(target->snippet, data, *count_r);
"top\nposter\n>quote1\n>quote2\n",
100,
"top poster" },
+ { "Content-Type: text/plain\n"
+ "\n"
+ ">quoted long text",
+ 6,
+ ">quoted" },
{ "Content-Type: text/plain; charset=utf-8\n"
"\n"
"Invalid utf8 \x80\xff\n",