X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fautohandler;h=a017eccb7a7181a8e5961882e58de9f5b401c51a;hb=7b28c0c12fe5e623324102a5ee4114f42b5ede3e;hp=a3f7eb0086db5a097cbdd7751c852aa965fb6473;hpb=e74ef43f87208638dd1a01073e819c053d0783f4;p=freeside.git diff --git a/httemplate/autohandler b/httemplate/autohandler index a3f7eb008..a017eccb7 100644 --- a/httemplate/autohandler +++ b/httemplate/autohandler @@ -9,7 +9,18 @@ if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { if ( lc($r->content_type) eq 'text/html' ) { - $profile = '
'. 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 = ''; }'. + encode_entities( $text ). #"\n\n". &sprintAutoProfile(). ''; "\n\n". '