[rt-users] bug/patch - no linefeeds in "Show" output for an outgoing message

Jo Rhett jrhett at netconsonance.com
Mon Feb 23 20:01:00 EST 2009


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





More information about the rt-users mailing list