[Rt-commit] r14570 - in rt/3.8/trunk: .

elacour at bestpractical.com elacour at bestpractical.com
Mon Jul 28 10:11:41 EDT 2008


Author: elacour
Date: Mon Jul 28 10:11:39 2008
New Revision: 14570

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/share/html/Ticket/Elements/ShowMessageStanza

Log:
 r10264 at datura:  manu | 2008-07-28 16:11:21 +0200
 Don't add <br /> in ticket history contents if using PlainTextPre display.


Modified: rt/3.8/trunk/share/html/Ticket/Elements/ShowMessageStanza
==============================================================================
--- rt/3.8/trunk/share/html/Ticket/Elements/ShowMessageStanza	(original)
+++ rt/3.8/trunk/share/html/Ticket/Elements/ShowMessageStanza	Mon Jul 28 10:11:39 2008
@@ -82,7 +82,9 @@
 
     $m->callback( content => $ref, %ARGS );
     $m->comp('/Elements/MakeClicky', content => $ref, ticket => $ticket, %ARGS);
-    $$ref =~ s{$}{<br />}mg if defined $$ref;
+    unless ( RT->Config->Get('PlainTextPre', $session{'CurrentUser'}) ) {
+        $$ref =~ s{$}{<br />}mg if defined $$ref;
+    }
     $m->out( $$ref );
 };
 </%INIT>


More information about the Rt-commit mailing list