From 299521f02c02278857dfd2561973dc0c94e44b57 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 1 Apr 2012 22:31:50 -0400 Subject: Whitespace cleanup. Replace 8-space indentation with tab characters, and various other automated cleanups. --- mail/em-format-html-print.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'mail/em-format-html-print.c') diff --git a/mail/em-format-html-print.c b/mail/em-format-html-print.c index ed64a9ea07..150c16dbf5 100644 --- a/mail/em-format-html-print.c +++ b/mail/em-format-html-print.c @@ -75,12 +75,12 @@ efhp_write_attachments_list (EMFormatHTMLPrint *efhp, return; str = g_string_new ( - "\n"); + "
\n"); g_string_append_printf (str, - "\n" - "\n", - _("Attachments"), _("Name"), _("Size")); + "\n" + "\n", + _("Attachments"), _("Name"), _("Size")); for (iter = efhp->priv->attachments; iter; iter = iter->next) { EMFormatPURI *puri = iter->data; @@ -97,7 +97,7 @@ efhp_write_attachments_list (EMFormatHTMLPrint *efhp, if (e_attachment_get_description (attachment) && *e_attachment_get_description (attachment)) { - name = g_strdup_printf ("%s (%s)", + name = g_strdup_printf ("%s (%s)", e_attachment_get_description (attachment), g_file_info_get_display_name (fi)); } else { @@ -108,14 +108,14 @@ efhp_write_attachments_list (EMFormatHTMLPrint *efhp, ba = camel_data_wrapper_get_byte_array (dw); size = g_format_size (ba->len); - g_string_append_printf (str, "\n", + g_string_append_printf (str, "\n", name, size); g_free (name); g_free (size); } - g_string_append (str, "

%s

%s%s

%s

%s%s
%s%s
%s%s
\n"); + g_string_append (str, "\n"); camel_stream_write_string (stream, str->str, cancellable, NULL); g_string_free (str, TRUE); @@ -140,12 +140,12 @@ efhp_write_headers (EMFormat *emf, buf = camel_medium_get_header (CAMEL_MEDIUM (puri->part), "subject"); subject = camel_header_decode_string (buf, "UTF-8"); str = g_string_new ("\n"); + "cellpadding=\"0\" class=\"printing-header\">\n"); g_string_append_printf ( str, - "" - "" - "\n", + "" + "" + "\n", subject); g_free (subject); @@ -181,7 +181,7 @@ efhp_write_headers (EMFormat *emf, } /* Get prefix of this PURI */ - puri_prefix = g_strndup (puri->uri, g_strrstr (puri->uri, ".") - puri->uri); + puri_prefix = g_strndup (puri->uri, g_strrstr (puri->uri, ".") - puri->uri); /* Add encryption/signature header */ raw_header.name = _("Security"); @@ -282,11 +282,11 @@ efhp_write_inline_attachment (EMFormat *emf, if (e_attachment_get_description (attachment) && *e_attachment_get_description (attachment)) { - name = g_strdup_printf ("

Attachment: %s (%s)

\n", + name = g_strdup_printf ("

Attachment: %s (%s)

\n", e_attachment_get_description (attachment), g_file_info_get_display_name (fi)); } else { - name = g_strdup_printf ("

Attachment: %s

\n", + name = g_strdup_printf ("

Attachment: %s

\n", g_file_info_get_display_name (fi)); } @@ -314,7 +314,7 @@ efhp_write_print_layout (EMFormat *emf, "\n\n" "Evolution Mail Display\n" "\n" + "href=\"evo-file://" EVOLUTION_PRIVDATADIR "/theme/webview-print.css\" />\n" "\n" "", cancellable, NULL); @@ -336,7 +336,7 @@ efhp_write_print_layout (EMFormat *emf, puri->write_func (emf, puri, stream, &print_info, cancellable); - while (iter && !g_str_has_suffix (puri->uri, ".rfc822.end")) { + while (iter && !g_str_has_suffix (puri->uri, ".rfc822.end")) { iter = iter->next; if (iter) @@ -355,15 +355,15 @@ efhp_write_print_layout (EMFormat *emf, CamelContentType *ct; gchar *mime_type; - if (puri->cid && g_ascii_strncasecmp (puri->cid, "cid:", 4) == 0) + if (puri->cid && g_ascii_strncasecmp (puri->cid, "cid:", 4) == 0) continue; ct = camel_mime_part_get_content_type (puri->part); mime_type = camel_content_type_simple (ct); handler = em_format_find_handler (puri->emf, mime_type); - d(printf("Handler for PURI %s (%s): %s\n", puri->uri, mime_type, - handler ? handler->mime_type : "(null)")); + d(printf("Handler for PURI %s (%s): %s\n", puri->uri, mime_type, + handler ? handler->mime_type : "(null)")); g_free (mime_type); efhp->priv->attachments = -- cgit v1.2.3

%s

%s