? 448670-35-mimemail-D6.patch Index: theme/mimemail.theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/mimemail/theme/mimemail.theme.inc,v retrieving revision 1.2 diff -u -p -r1.2 mimemail.theme.inc --- theme/mimemail.theme.inc 10 Aug 2009 17:53:39 -0000 1.2 +++ theme/mimemail.theme.inc 21 Mar 2010 04:46:19 -0000 @@ -43,5 +43,10 @@ function template_preprocess_mimemail_me if (file_exists($style)) $css .= file_get_contents($style); } - $variables['css'] = str_replace(' ','', str_replace("\n", '', $css)); + $css = str_replace("\r", ' ', $css); // change newlines to spaces. + $css = str_replace("\n", ' ', $css); // change newlines to spaces. + $css = str_replace("\t", ' ', $css); // change tabs to spaces. + $css = str_replace(' ', ' ', $css); // remove duplicate spaces. + $css = wordwrap($css, 990); // wordwrap to adhere to RFC821 + $variables['css'] = $css; }