Skip to content
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

Cove coverage HTML report has all PHP sources compacted to only one line #446

Closed
forrest79 opened this issue Mar 26, 2024 · 3 comments
Closed
Labels

Comments

@forrest79
Copy link
Contributor

Version: 2.5.2

Bug Description

Generated HTML coverage report has all PHP file sources displayed in one line.

Steps To Reproduce

Generate HTML coverage report.

Expected Behavior

PHP file source looks like the original PHP file.

Possible Solution

I'm able to fix this with some CSS updates:

div.code pre {
        margin: 0;
        padding-left: 3em;
}

code {
	display: block;
	position: relative;
}
@milo
Copy link
Member

milo commented Mar 27, 2024

Could you please upload screenshots before and after your CSS?

@forrest79
Copy link
Contributor Author

Here it is. I was not sure if I'm describing it clearly :-)

Original coverage:

image

Updated CSS:

image

I noticed this bug after upgrading PHP 8.2 to PHP 8.3.

@dg
Copy link
Member

dg commented Mar 27, 2024

In PHP 8.3, the output from highlight_string() has changed

@milo milo added the bug label Apr 9, 2024
@milo milo closed this as completed in c02fdda Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants