[rt-users] Ticket History Format with CC Header
Michael S. Liebman
m-liebman at northwestern.edu
Thu Jul 8 14:51:49 EDT 2004
On Thu, Jul 08, 2004 at 10:47:48AM -0700, Jonathan Chen wrote:
>
> By chance the code to fix it is easy enough to patch 3.11?
I doubt this is an easy backport, but I had a quick and dirty and
probably breaks other things patch if you just need it for the
demo. Copy /path/to/rt3/share/html/Ticket/Elements/ShowMessageHeaders
to local/html/Ticket/Elements/ShowMessageHeaders and apply the patch
below.
Michael
--- share/html/Ticket/Elements/ShowMessageHeaders 2004-01-02 17:55:55.000000000 -0500
+++ local/html/Ticket/Elements/ShowMessageHeaders 2004-02-18 10:08:32.000000000 -0500
@@ -23,7 +23,12 @@
%# END LICENSE BLOCK
<%$content |n%>
<%INIT>
-my $content = $Headers;
+my $temp = $Headers;
+
+# TODO: add a variable test for this
+require Text::Wrapper;
+my $content = Text::Wrapper->new(columns => 60)->wrap($temp);
+
RT::Interface::Web::EscapeUTF8(\$content);
$m->comp('/Elements/Callback', content => \$content, %ARGS);
</%INIT>
--
Michael S. Liebman m-liebman at northwestern.edu
http://msl521.freeshell.org/
"I have vision and the rest of the world wears bifocals."
-Paul Newman in "Butch Cassidy & the Sundance Kid"
More information about the rt-users
mailing list