mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
Fix minor style issues in show_part_content function.
I was recently editing the code in this function and decided to clean it up a bit.
This commit is contained in:
parent
9c7668bdb5
commit
2ead072e85
1 changed files with 6 additions and 6 deletions
|
@ -221,17 +221,17 @@ show_part_content (GMimeObject *part, GMimeStream *stream_out)
|
||||||
charset = g_mime_object_get_content_type_parameter (part, "charset");
|
charset = g_mime_object_get_content_type_parameter (part, "charset");
|
||||||
|
|
||||||
if (stream_out) {
|
if (stream_out) {
|
||||||
stream_filter = g_mime_stream_filter_new(stream_out);
|
stream_filter = g_mime_stream_filter_new (stream_out);
|
||||||
g_mime_stream_filter_add(GMIME_STREAM_FILTER(stream_filter),
|
g_mime_stream_filter_add(GMIME_STREAM_FILTER (stream_filter),
|
||||||
g_mime_filter_crlf_new(FALSE, FALSE));
|
g_mime_filter_crlf_new (FALSE, FALSE));
|
||||||
if (charset) {
|
if (charset) {
|
||||||
GMimeFilter *charset_filter;
|
GMimeFilter *charset_filter;
|
||||||
charset_filter = g_mime_filter_charset_new(charset, "UTF-8");
|
charset_filter = g_mime_filter_charset_new (charset, "UTF-8");
|
||||||
/* This result can be NULL for things like "unknown-8bit".
|
/* This result can be NULL for things like "unknown-8bit".
|
||||||
* Don't set a NULL filter as that makes GMime print
|
* Don't set a NULL filter as that makes GMime print
|
||||||
* annoying assertion-failure messages on stderr. */
|
* annoying assertion-failure messages on stderr. */
|
||||||
if (charset_filter)
|
if (charset_filter)
|
||||||
g_mime_stream_filter_add(GMIME_STREAM_FILTER(stream_filter),
|
g_mime_stream_filter_add (GMIME_STREAM_FILTER (stream_filter),
|
||||||
charset_filter);
|
charset_filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue