Commit 44b408ad authored by Masamitsu MURASE's avatar Masamitsu MURASE

`puts` should print "\n" only when the argument does not end with "\n".

parent 119b9f5b
......@@ -48,8 +48,9 @@ module Kernel
i = 0
len = args.size
while i < len
__printstr__ args[i].to_s
__printstr__ "\n"
s = args[i].to_s
__printstr__ s
__printstr__ "\n" if (s[-1] != "\n")
i += 1
end
__printstr__ "\n" if len == 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment