[rt-users] HTML messages and linebreaks in transaction->content

Mike Johnson Mike.Johnson at NorMed.ca
Fri Jan 22 09:22:38 EST 2010


Wrap the {$Transaction->Content()} line with <pre> </pre> tags.

This tells the client that is interpreting the HTML to preserve formatting... which means if there is a carrage return, it'll show it.

Mike Johnson
Datatel Programmer/Analyst
Northern Ontario School of Medicine
955 Oliver Road
Thunder Bay, ON   P7B 5E1
Phone: (807) 766-7331
Email: mike.johnson at normed.ca
Technology assistance: email nosmhelpdesk at normed.ca 
Technology Emergency Contact (TEC) Mon-Fri, 8am to 5pm excluding stat holidays: 
Off campus toll free 1 (800) 461-8777, option 8, or locally either 
(705) 662-7120 or (807) 766-7500


>>> Andy Jones <adjones at cca.edu> 1/21/2010 4:01 PM >>>
Hello,

We're using HTML formatting in correspondence from RT.  However, we're  
running into a problem with text that comes out of

{$Transaction->Content()}

When the message is sent in plain text, all of the carriage returns  
from Content are translated properly into linebreaks.  However, in the  
HTML version, the carriage returns are ignored and all of the text  
from Content is displayed on one line.

(In the Template, the message content type is set as: Content-Type:  
text/html)

Does anyone know how we might fix this and retain our HTML messages?

Thanks,
Andy

Andy Jones
User Support Manager
Educational Technology Services
510.594.5016
andy at cca.edu 





More information about the rt-users mailing list