Bug/patch - no linefeeds in "Show" output for an outgoing message

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( ‘
    ’ );
    
    
    • $m->out( ‘
      ’ );
      $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( ‘
      ’ );
    • $m->out( ‘
    ’ );
    };

my $AttachmentObj = new RT::Attachment($session{‘CurrentUser’});

Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source
and other randomness

I’d like to point out that this problem also re-appears in RTFM
"Extract Article" as well. With MessageBoxWrap = SOFT, all
paragraphs are a single long line.On Jul 27, 2009, at 6:29 PM, Jo Rhett wrote:

Okay, I think I might have it.

Default wrapping: “HARD” (choices “SOFT”, “HARD”)

Set( $MessageBoxWrap, ‘SOFT’ );

If you are set for default HARD, then it is being wrapped by RT for
you – which is seems to be what I view. What we want is
appropriate wrapping relative to the window size. If you set this
to SOFT and re-add that paragraph without linefeeds, you’ll see the
problem.

Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source
and other randomness