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 );
+ my $text = dbh->sprintProfile();
+ #my $text = $wrapper->wrap( dbh->sprintProfile() );
+ $text =~ s/^/ /mg;
+
+ $profile = '<PRE>'.
+ encode_entities( $text ).
#"\n\n". &sprintAutoProfile(). '</PRE>';
"\n\n". '</PRE>';
}