[Rt-commit] r16998 - rt/3.8/trunk/share/html/Ticket/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Sat Nov 22 18:28:18 EST 2008
Author: ruz
Date: Sat Nov 22 18:28:18 2008
New Revision: 16998
Modified:
rt/3.8/trunk/share/html/Ticket/Elements/ShowMessageStanza
Log:
* fix double BRs message stanzas, s/$//mg matches new line and end of scalar, so it always
add a newline right at the end what is not correct
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 Sat Nov 22 18:28:18 2008
@@ -81,7 +81,7 @@
$m->callback( content => $ref, %ARGS );
$m->comp('/Elements/MakeClicky', content => $ref, ticket => $ticket, %ARGS);
unless ( $plain_text_pre ) {
- $$ref =~ s{$}{<br />}mg if defined $$ref;
+ $$ref =~ s{(?=\r*\n)}{<br />}g if defined $$ref;
}
$m->out( $$ref );
};
More information about the Rt-commit
mailing list