Skip to content

Add trailing newline to markdown report #1936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add trailing newline to markdown report
Without trailing newline in a markdown report, the first additional information that comes from cmdline handler will end up in an additional row below the TOTALs row.

E.g. Coverage failure: https://github.com/nedbat/coveragepy/blob/master/coverage/cmdline.py#L761
  • Loading branch information
rgryta authored Mar 12, 2025
commit 34fc1bf37f046ff220d35dd706408364fd870d0a
2 changes: 2 additions & 0 deletions coverage/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def _report_text(
for end_line in end_lines:
self.write(end_line)

self.write("")

def _report_markdown(
self,
header: list[str],
Expand Down
Loading