From af7fa01c4148ae3616f08b0cfe81518a7b0cb5a2 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 23 Dec 2008 00:34:06 +0000 Subject: [PATCH] truncate package descriptions over 50 chars to avoid pushing the total column out to the right, RT#4449 --- FS/FS/cust_bill.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.11.0