Skip to content

Commit 5350c95

Browse files
committed
Change STDOUT.write to STDOUT.puts
This allows the output to have a proper trailing newline. Otherwise, when processing multiple files there will be a concatenation of the last and first lines of each file
1 parent 8607626 commit 5350c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/json2timeseriesdb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ data_files.each do |filename|
338338
if $options[:host]
339339
$net_output.write(converted_data)
340340
else
341-
STDOUT.write(converted_data)
341+
STDOUT.puts(converted_data)
342342
end
343343
rescue => e
344344
STDERR.puts "ERROR: #{filename}: #{e.message}"

0 commit comments

Comments
 (0)