X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fautohandler;fp=httemplate%2Fautohandler;h=a017eccb7a7181a8e5961882e58de9f5b401c51a;hp=ad0ab8ba6892a25bd1346111729c071cc1594de1;hb=580330233cbf32c58d9f29dc391bd2ebd83e16d5;hpb=11f98403d0c7bf158ad0f71120e15c0bdf3d792c diff --git a/httemplate/autohandler b/httemplate/autohandler index ad0ab8ba6..a017eccb7 100644 --- a/httemplate/autohandler +++ b/httemplate/autohandler @@ -9,15 +9,18 @@ if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { if ( lc($r->content_type) eq 'text/html' ) { - # barely worth it, just in case someone tries to use profiling on a - # non-RT install - eval "use Text::Wrapper;"; - die $@ if $@; + ## 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( $wrapper->wrap( dbh->sprintProfile() ) ).
+               encode_entities( $text ).
                #"\n\n". &sprintAutoProfile(). '
'; "\n\n". ''; }