From b25c0f34d54af2928be99d6fd3b0f1a691e6873d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 10 Jul 2018 09:32:11 +0200 Subject: lib/format.php: tsv should end with lf --- lib/format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/format.php b/lib/format.php index 6c18648..1440b64 100644 --- a/lib/format.php +++ b/lib/format.php @@ -19,10 +19,10 @@ function export_as_requested($content) { if (! isset($_GET["no-headers"])) print implode("\t",array_keys($content["tsv"][0])) . "\n"; print implode( - "\n", + "", array_map( function($row){ - return implode("\t",$row); + return implode("\t",$row) . "\n"; }, $content["tsv"] ) -- cgit v1.2.3-70-g09d2