[freeside-commits] freeside/httemplate autohandler,1.4,1.5

Ivan,,, ivan at wavetail.420.am
Sat Jul 15 17:55:07 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate
In directory wavetail:/tmp/cvs-serv4705/httemplate

Modified Files:
	autohandler 
Log Message:
odds and ends

Index: autohandler
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/autohandler,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- autohandler	14 May 2006 16:47:29 -0000	1.4
+++ autohandler	16 Jul 2006 00:55:05 -0000	1.5
@@ -9,15 +9,18 @@
 
   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>';
   } 



More information about the freeside-commits mailing list