summaryrefslogtreecommitdiff
path: root/search.php
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2015-12-07 00:37:50 +0000
committerJoe Robinson <joe@lc8n.com>2015-12-07 00:37:50 +0000
commit6ede577a74cee606cdde72b57e01ccc9e3295ea6 (patch)
tree2f927fa897bc41993b8d79f468123b96de27eac2 /search.php
parentdcfca35dd4a41977e040e43c1dcca9ac527dac39 (diff)
Move newline at end of output to the correct place
Diffstat (limited to 'search.php')
-rw-r--r--search.php4
1 files 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
}