aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-11-10 11:40:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-11-11 04:54:43 +0800
commit2c4ae5e7685c462f8d464448e4617b8dea029e72 (patch)
treec34f0cbb7c500ff70f10fce846631b0a948b341c /em-format/e-mail-formatter-utils.c
parent583da46b8caf4b2a8b548b03c38fe0e84164abfb (diff)
downloadgsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.gz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.bz2
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.lz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.xz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.zst
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'em-format/e-mail-formatter-utils.c')
-rw-r--r--em-format/e-mail-formatter-utils.c30
1 files changed, 19 insertions, 11 deletions
diff --git a/em-format/e-mail-formatter-utils.c b/em-format/e-mail-formatter-utils.c
index 883d985510..7c01f323bb 100644
--- a/em-format/e-mail-formatter-utils.c
+++ b/em-format/e-mail-formatter-utils.c
@@ -58,7 +58,8 @@ e_mail_formatter_format_text_header (EMailFormatter *formatter,
value++;
if (!(flags & E_MAIL_FORMATTER_HEADER_FLAG_HTML))
- html = mhtml = camel_text_to_html (value,
+ html = mhtml = camel_text_to_html (
+ value,
e_mail_formatter_get_text_format_flags (formatter), 0);
else
html = value;
@@ -90,7 +91,8 @@ e_mail_formatter_format_text_header (EMailFormatter *formatter,
}
}
- g_string_append_printf (buffer, fmt,
+ g_string_append_printf (
+ buffer, fmt,
(flags & E_MAIL_FORMATTER_HEADER_FLAG_HIDDEN ? "none" : "table-row"), label, html);
g_free (mhtml);
@@ -186,12 +188,13 @@ e_mail_formatter_format_address (EMailFormatter *formatter,
}
if (id) {
- g_string_append_printf (out,
+ g_string_append_printf (
+ out,
"<span id=\"__evo-moreaddr-%s\" "
- "style=\"display: none;\">", id);
+ "style=\"display: none;\">", id);
str = g_strdup_printf (
"<img src=\"evo-file://%s/plus.png\" "
- "id=\"__evo-moreaddr-img-%s\" class=\"navigable\">",
+ "id=\"__evo-moreaddr-img-%s\" class=\"navigable\">",
EVOLUTION_IMAGESDIR, id);
}
}
@@ -209,7 +212,8 @@ e_mail_formatter_format_address (EMailFormatter *formatter,
}
if (id) {
- g_string_append_printf (out,
+ g_string_append_printf (
+ out,
"</span>"
"<span class=\"navigable\" "
"id=\"__evo-moreaddr-ellipsis-%s\" "
@@ -289,7 +293,8 @@ e_mail_formatter_format_header (EMailFormatter *formatter,
g_free (buf);
html = g_string_new ("");
- img = e_mail_formatter_format_address (formatter, html, addrs, (gchar *) label,
+ img = e_mail_formatter_format_address (
+ formatter, html, addrs, (gchar *) label,
(flags & E_MAIL_FORMATTER_HEADER_FLAG_NOLINKS),
!(flags & E_MAIL_FORMATTER_HEADER_FLAG_NOELIPSIZE));
@@ -329,7 +334,8 @@ e_mail_formatter_format_header (EMailFormatter *formatter,
while (*txt == ' ' || *txt == '\t')
txt++;
- html = camel_text_to_html (txt,
+ html = camel_text_to_html (
+ txt,
e_mail_formatter_get_text_format_flags (formatter), 0);
msg_date = camel_header_decode_date (txt, &msg_offset);
@@ -347,8 +353,9 @@ e_mail_formatter_format_header (EMailFormatter *formatter,
} else {
gchar *date_str;
- date_str = e_datetime_format_format ("mail", "header",
- DTFormatKindDateTime, msg_date);
+ date_str = e_datetime_format_format (
+ "mail", "header",
+ DTFormatKindDateTime, msg_date);
if (hide_real_date) {
/* Show only the local-formatted date, losing all timezone
@@ -382,7 +389,8 @@ e_mail_formatter_format_header (EMailFormatter *formatter,
if (flags & E_MAIL_FORMATTER_HEADER_FLAG_NOLINKS)
g_string_append_printf (html, "%s", scan->newsgroup);
else
- g_string_append_printf (html, "<a href=\"news:%s\">%s</a>",
+ g_string_append_printf (
+ html, "<a href=\"news:%s\">%s</a>",
scan->newsgroup, scan->newsgroup);
scan = scan->next;
if (scan)