Skip to content

Commit

Permalink
fix to add newline between output blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
hpainter committed Feb 28, 2020
1 parent e2bffd0 commit 941e810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/simplecov-console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def table_output(files, root)

# format per-file results output as plain text blocks
def block_output(files, root)
blocks = [""]
blocks = []
files.each do |f|
block = []
block << sprintf("%8.8s: %s", 'file', f.filename.gsub(root + "/", ''))
Expand All @@ -169,7 +169,7 @@ def block_output(files, root)
block << sprintf("%8.8s: %s", 'missed', missed(f.missed_lines).join(", "))
blocks << block.join("\n")
end
blocks.join("\n")
"\n" << blocks.join("\n\n") << "\n"
end

end

0 comments on commit 941e810

Please sign in to comment.