Skip to content

Commit 5f3d92e

Browse files
committed
fix: puts should put a newline after the end of the last item. Closes #117
1 parent cc031a3 commit 5f3d92e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gems/codetracer-pure-ruby-recorder/lib/codetracer/kernel_patches.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def self.install(tracer)
3030
define_method(:puts) do |*args|
3131
loc = caller_locations(1, 1).first
3232
@@tracers.each do |t|
33-
t.record_event(loc.path, loc.lineno, args.join("\n"))
33+
t.record_event(loc.path, loc.lineno, args.join("\n") + "\n")
3434
end
3535
codetracer_original_puts(*args)
3636
end

gems/codetracer-ruby-recorder/lib/codetracer/kernel_patches.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def self.install(tracer)
3030
define_method(:puts) do |*args|
3131
loc = caller_locations(1, 1).first
3232
@@tracers.each do |t|
33-
t.record_event(loc.path, loc.lineno, args.join("\n"))
33+
t.record_event(loc.path, loc.lineno, args.join("\n") + "\n")
3434
end
3535
codetracer_original_puts(*args)
3636
end

0 commit comments

Comments
 (0)