From 6ede577a74cee606cdde72b57e01ccc9e3295ea6 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Mon, 7 Dec 2015 00:37:50 +0000 Subject: Move newline at end of output to the correct place --- search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.php b/search.php index d68beec..0aeb0b9 100644 --- a/search.php +++ b/search.php @@ -114,7 +114,7 @@ try { } } - echo implode(" - ", $out); + echo implode(" - ", $out) . "\n"; } catch (Exception $e) { echo $e->getMessage() . "\n";die(); @@ -126,5 +126,5 @@ function read_stdin() $input = fgets($fr,128); // read a maximum of 128 characters $input = rtrim($input); // trim any trailing spaces. fclose ($fr); // close the file handle - return $input . "\n"; // return the text entered + return $input; // return the text entered } -- cgit v1.2.3