[rt-users] rt emailing extra line breaks
Jesse Vincent
jesse at bestpractical.com
Fri Apr 9 10:19:03 EDT 2010
On Fri, Apr 09, 2010 at 05:08:47PM +0300, Agnislav Onufrijchuk wrote:
> 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.
>
Oh. if it's only a webui issue and not an email one, then yes. We made a similar (but different and I think more correct) change for 3.8.6 or 3.8.7.
>
> --
> 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
--
More information about the rt-users
mailing list