odds and ends
[freeside.git] / httemplate / autohandler
index ad0ab8b..a017ecc 100644 (file)
@@ -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 = '<PRE>'.
-               encode_entities( $wrapper->wrap( dbh->sprintProfile() ) ).
+               encode_entities( $text ).
                #"\n\n". &sprintAutoProfile(). '</PRE>';
                "\n\n".                        '</PRE>';
   }