summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-10-10 23:41:32 +0000
committerivan <ivan>2010-10-10 23:41:32 +0000
commit6b88e6c5617d52ab4a58677f6a92413ed4509714 (patch)
treeb5d2d1f68fa608e69e926008cc54e137c32f2c01
parent7430f21fafadacc4e28078f0273b5e3aeb131800 (diff)
should fix wrapping of CDRs reported under IEq, RT#9964
-rw-r--r--FS/FS/cust_bill.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index d364ac527..d9c2c40e2 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -2291,7 +2291,7 @@ sub print_generic {
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 @@ sub _latex_escape {
$value;
}
+
+sub _html_escape {
+ my $value = shift;
+ encode_entities($value);
+ $value =~ s/ +/&nbsp;/g;
+ $value;
+}
+
#utility methods for print_*
sub _translate_old_latex_format {