[freeside-commits] freeside/FS/FS cust_bill.pm,1.294,1.295

Ivan,,, ivan at wavetail.420.am
Sun Oct 10 16:41:34 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9399

Modified Files:
	cust_bill.pm 
Log Message:
should fix wrapping of CDRs reported under IEq, RT#9964

Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.294
retrieving revision 1.295
diff -u -w -d -r1.294 -r1.295
--- cust_bill.pm	22 Sep 2010 19:16:17 -0000	1.294
+++ cust_bill.pm	10 Oct 2010 23:41:32 -0000	1.295
@@ -2291,7 +2291,7 @@
   my $nbsp = $nbsps{$format};
 
   my %escape_functions = ( 'latex'    => \&_latex_escape,
-                           'html'     => \&encode_entities,
+                           'html'     => \&_html_escape, #\&encode_entities,
                            'template' => sub { shift },
                          );
   my $escape_function = $escape_functions{$format};
@@ -3165,6 +3165,14 @@
   $value;
 }
 
+
+sub _html_escape {
+  my $value = shift;
+  encode_entities($value);
+  $value =~ s/ +/ /g;
+  $value;
+}
+
 #utility methods for print_*
 
 sub _translate_old_latex_format {



More information about the freeside-commits mailing list