pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/coveragepy/coveragepy/pull/1936

ss" /> Add trailing newline to markdown report by rgryta · Pull Request #1936 · coveragepy/coveragepy · GitHub
Skip to content

Add trailing newline to markdown report#1936

Draft
rgryta wants to merge 2 commits into
coveragepy:mainfrom
rgryta:patch-1
Draft

Add trailing newline to markdown report#1936
rgryta wants to merge 2 commits into
coveragepy:mainfrom
rgryta:patch-1

Conversation

@rgryta
Copy link
Copy Markdown

@rgryta rgryta commented Mar 12, 2025

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

rgryta added 2 commits March 12, 2025 16:58
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
@nedbat
Copy link
Copy Markdown
Member

nedbat commented Mar 15, 2025

Will you be fixing the failing tests?

@rgryta
Copy link
Copy Markdown
Author

rgryta commented Mar 15, 2025

Will you be fixing the failing tests?

Hi, yes. Haven't had time to work on them this weekend. I'll change the last_line assertions to second_last_line.
Unless they'd be better implemented in some other way? Like adding a deletion of all last lines that are empty before performing TOTALS line assertions?

I can add those changes in any way tbh.

@nedbat
Copy link
Copy Markdown
Member

nedbat commented Mar 15, 2025

I think I'd change the last_line_squeezed function to return the last non-blank line. Line count assertions can be incremented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy