From: ivan Date: Tue, 23 Dec 2008 00:34:06 +0000 (+0000) Subject: truncate package descriptions over 50 chars to avoid pushing the total column out... X-Git-Tag: root_of_webpay_support~178 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=af7fa01c4148ae3616f08b0cfe81518a7b0cb5a2;p=freeside.git truncate package descriptions over 50 chars to avoid pushing the total column out to the right, RT#4449 --- diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 7504f6b0a..bb582cfd9 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -2758,7 +2758,7 @@ sub _items_cust_bill_pkg { my $cust_pkg = $cust_bill_pkg->cust_pkg; my $desc = $cust_bill_pkg->desc; - $desc = substr($desc, 0, 50). '...'; + $desc = substr($desc, 0, 50). '...' if $format eq 'latex' && length($desc) > 50; my %details_opt = ( 'format' => $format,