[rt-devel] ShowMessageHeaders in <pre> ?

Michael S. Liebman m-liebman at northwestern.edu
Wed Mar 31 11:06:43 EST 2004


On Tue, Mar 30, 2004 at 04:35:50PM -0800, matthew zeier wrote:
> In ShowMessageHeaders, I've added:

My solution was to wrap the headers. I did this a quick and dirty
hack, intending to go back and add some configurability to it. Below
is a diff for ShowMessageHeaders.

Michael

--- /opt/rt3/share/html/Ticket/Elements/ShowMessageHeaders      2004-01-02 17:55:55.000000000 -0500
+++ /opt/rt3/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;
+
+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-devel mailing list