diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-09 01:24:42 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:11 +0800 |
commit | 54da4fc09cf226fdb59b9f0c70555e2e57dc1f91 (patch) | |
tree | c62c9ac6d08670dffc400ff00117508512ce4f8b /e-util/e-html-utils.c | |
parent | fe20f70779fb486169a0735499d24e001ffa0cab (diff) | |
download | gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.tar.gz gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.tar.zst gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.zip |
Coding style cleanups.
Diffstat (limited to 'e-util/e-html-utils.c')
-rw-r--r-- | e-util/e-html-utils.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/e-util/e-html-utils.c b/e-util/e-html-utils.c index 087ac7a162..ceac32ffc6 100644 --- a/e-util/e-html-utils.c +++ b/e-util/e-html-utils.c @@ -130,7 +130,7 @@ email_address_extract (const guchar **cur, gchar **out, const guchar *linestart) if (dot > end) return NULL; - addr = g_strndup ((gchar *)start, end - start); + addr = g_strndup ((gchar *) start, end - start); *out -= *cur - start; *cur = end; @@ -158,7 +158,7 @@ is_citation (const guchar *c, gboolean saw_citation) return TRUE; /* Same if the next line is */ - p = (const guchar *)strchr ((const gchar *)c, '\n'); + p = (const guchar *) strchr ((const gchar *) c, '\n'); if (p && *++p == '>') return TRUE; @@ -233,7 +233,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color) col = 0; - for (cur = linestart = (const guchar *)input; cur && *cur; cur = next) { + for (cur = linestart = (const guchar *) input; cur && *cur; cur = next) { gunichar u; if (flags & E_TEXT_TO_HTML_MARK_CITATION && col == 0) { @@ -264,7 +264,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color) out += sprintf (out, "> "); } - u = g_utf8_get_char ((gchar *)cur); + u = g_utf8_get_char ((gchar *) cur); if (g_unichar_isalpha (u) && (flags & E_TEXT_TO_HTML_CONVERT_URLS)) { gchar *tmpurl = NULL, *refurl = NULL, *dispurl = NULL; @@ -310,7 +310,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color) if (!*cur) break; - u = g_utf8_get_char ((gchar *)cur); + u = g_utf8_get_char ((gchar *) cur); } if (u == '@' && (flags & E_TEXT_TO_HTML_CONVERT_ADDRESSES)) { @@ -330,7 +330,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color) if (!*cur) break; - u = g_utf8_get_char ((gchar *)cur); + u = g_utf8_get_char ((gchar *) cur); } } @@ -341,7 +341,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color) u = *cur; next = cur + 1; } else - next = (const guchar *)g_utf8_next_char (cur); + next = (const guchar *) g_utf8_next_char (cur); out = check_size (&buffer, &buffer_size, out, 10); @@ -396,7 +396,7 @@ e_text_to_html_full (const gchar *input, guint flags, guint32 color) case ' ': if (flags & E_TEXT_TO_HTML_CONVERT_SPACES) { - if (cur == (const guchar *)input || + if (cur == (const guchar *) input || *(cur + 1) == ' ' || *(cur + 1) == '\t' || *(cur - 1) == '\n') { strcpy (out, " "); |