[Koha-patches] [PATCH] bug 2386: adding newline between items in overdue notices

Andrew Moore andrew.moore at liblime.com
Wed Jul 23 20:19:57 CEST 2008


The lines for each item in the overdue notices were not separated by newlines. This cause them to
all be smashed together. I'm putting a newline between them.
---
 misc/cronjobs/overdue_notices.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 1f87038..ced4e64 100755
--- a/misc/cronjobs/overdue_notices.pl
+++ b/misc/cronjobs/overdue_notices.pl
@@ -363,7 +363,7 @@ END_SQL
                 my $titles = "";
                 while ( my $item_info = $sth2->fetchrow_hashref() ) {
                     my @item_info = map { $_ =~ /date$/ ? format_date( $item_info->{$_} ) : $item_info->{$_} || '' } @item_content_fields;
-                    $titles .= join "\t", @item_info;
+                    $titles .= join "\t", @item_info . "\n";
                 }
                 $sth2->finish;
 
-- 
1.5.6




More information about the Koha-patches mailing list