summaryrefslogtreecommitdiff
path: root/httemplate/autohandler
diff options
context:
space:
mode:
authorivan <ivan>2006-05-14 16:47:31 +0000
committerivan <ivan>2006-05-14 16:47:31 +0000
commit2c757d7db4cb6a7b9655de13206fcc84fb7ce61f (patch)
treef01088bb60d49ee0dd3dd796d57abe219c321f7b /httemplate/autohandler
parentc46235292c6bf929615ac28fc48c1d5609ce4590 (diff)
first part of ACL and re-skinning work and some other small stuff
Diffstat (limited to 'httemplate/autohandler')
-rw-r--r--httemplate/autohandler10
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/autohandler b/httemplate/autohandler
index a3f7eb008..ad0ab8ba6 100644
--- a/httemplate/autohandler
+++ b/httemplate/autohandler
@@ -9,7 +9,15 @@ if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
if ( lc($r->content_type) eq 'text/html' ) {
- $profile = '<PRE>'. encode_entities(dbh->sprintProfile()).
+ # barely worth it, just in case someone tries to use profiling on a
+ # non-RT install
+ eval "use Text::Wrapper;";
+ die $@ if $@;
+
+ my $wrapper = new Text::Wrapper( columns => 80 );
+
+ $profile = '<PRE>'.
+ encode_entities( $wrapper->wrap( dbh->sprintProfile() ) ).
#"\n\n". &sprintAutoProfile(). '</PRE>';
"\n\n". '</PRE>';
}