Vitaly Tskhovrebov wrote:
We're doing a lot of emailing through RT. So we have an issue, when quotation has much more line breakes, then in original letters. It seems like RT doing s/\n/\n\n/ every time.:
Hi, Vitaly. We've fixed this on our 3.8.4 with an attached patch. -- Agnislav Onufrijchuk PortaOne, Inc., RT Developer Tel: +1-866-SIP VOIP (+1 866 747 8647) ext. 7670 PortaOne Booth 812 @ ITW 2010 International Telecommunication Week Marriott Wardman Park Hotel Washington, DC - May 24-26
--- share/html/Ticket/Elements/ShowMessageStanza 2010-04-09 07:18:51.000000000 +0300 +++ local/html/Ticket/Elements/ShowMessageStanza 2010-04-09 07:21:38.000000000 +0300 @@ -97,6 +97,7 @@ $m->callback( content => $ref, %ARGS ); $m->comp('/Elements/MakeClicky', content => $ref, ticket => $ticket, %ARGS); unless ( $plain_text_pre ) { + $$ref =~ s{(\r*\n)}{\n}g if defined $$ref; $$ref =~ s{(?=\r*\n)}{<br />}g if defined $$ref; } $m->out( $$ref );
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com