If you click "Show" next to an outgoing mail message in RT 3.8.2,
regardless of your preference settings text paragraphs are a single
long line.
The following patch fixes that. You might want to also check
preferences and apply a font setting to the style="" attribute based
on the user preference.
--- html/Ticket/ShowEmailRecord.html_orig 2009-02-23
16:55:17.000000000 -0800
+++ html/Ticket/ShowEmailRecord.html 2009-02-23 16:56:22.000000000
-0800
@@ -65,7 +65,7 @@
my $show;
$show = sub {
my $attach = shift;
- $m->out( '<div id="body"><pre style="padding: 2em;">' );
+ $m->out( '<div id="body" style="white-space: pre-wrap; padding:
2em;">' );
$m->out( $m->interp->apply_escapes( $attach->Headers, 'h' ) );
$m->out( "\n\n" );
if ( $attach->ContentType =~ m{^multipart/}i ) {
@@ -76,7 +76,7 @@
} else {
$show_content->( $attach );
}
- $m->out( '</pre></div>' );
+ $m->out( '</div>' );
};
my $AttachmentObj = new RT::Attachment($session{'CurrentUser'});
--
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source
and other randomness
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [email protected]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com