X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowMessageStanza;h=99f80c56afff3cb11c449fa161a7105263895131;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=8a85443285056ac649571a924ec3cce7419b7d0e;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Ticket/Elements/ShowMessageStanza b/rt/share/html/Ticket/Elements/ShowMessageStanza index 8a8544328..99f80c56a 100755 --- a/rt/share/html/Ticket/Elements/ShowMessageStanza +++ b/rt/share/html/Ticket/Elements/ShowMessageStanza @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -77,16 +77,16 @@ my $print_content = sub { $m->out($$ref); }; -if ( ref $Message ) { - $m->out('
')
-        if (    $ContentType eq 'text/plain'
-             && $plain_text_pre
-             && !$Depth
-             && !$plain_text_mono );
-    $m->out(   '
' ); +$m->out('
')
+    if (    $ContentType eq 'text/plain'
+         && $plain_text_pre
+         && !$Depth
+         && !$plain_text_mono );
+$m->out(   '
' ); +if ( ref $Message ) { my @stack; my $para = ''; my $i = 0; @@ -170,16 +170,16 @@ AGAIN: foreach ( ; $i < @$Message; $i++ ) { $m->out('
'); goto AGAIN; } - - $m->out('
'); - $m->out('
') - if ( $ContentType eq 'text/plain' - && $plain_text_pre - && !$Depth - && !$plain_text_mono ); } else { $print_content->( \$Message ); } + +$m->out(''); +$m->out('') + if ( $ContentType eq 'text/plain' + && $plain_text_pre + && !$Depth + && !$plain_text_mono ); <%ARGS> $Message => undef