8000 HTML Title inconsequential · Issue #296 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

HTML Title inconsequential #296

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

Closed
dscole opened this issue Feb 14, 2019 · 9 comments
Closed

HTML Title inconsequential #296

dscole opened this issue Feb 14, 2019 · 9 comments

Comments

@dscole
Copy link
dscole commented Feb 14, 2019

First I would say I know almost nothing about html. Hopefully, what I say still makes sense :)

It appears the argument I pass to --html-title ends up being set in the html report's <head> section's title, not the <body>'s title. The effect I'm seeing is that the --html-title argument controls the name of the tab in my browser, but the report itself still has the title of GCC Code Coverage Report.
Usually my browser tabs are not even wide enough to even show the full title. I think it makes more sense for the --html-title to set the title of the report I see, rather than then tab name.

I tried looking how I would make this change myself in the code, but there are just so many instances of GCC Code Coverage Report in the repo, that I didn't know which I actually need to change.

@latk
Copy link
Member
latk commented Feb 14, 2019 via email

@dscole
Copy link
Author
dscole commented Feb 14, 2019

Yeah absolutely, I prefer not touching anything html since I know so little about it.

@Spacetown
Copy link
Member

Shall the "GCC Code Coverage Report" be replaced or extended by the given title?

Spacetown added a commit to Spacetown/gcovr that referenced this issue May 10, 2020
@Spacetown
Copy link
Member

We have two defaults for the title:

@latk
Copy link
Member
latk commented May 27, 2020

I have no idea why the title ever said “Head”. Ideally, the HTML title would just default to GCC Code Coverage report, and would provide both the <title> and the <h1>. Of course, this hasn't been done yet because that would require all the HTML reference files to be updated.

@Spacetown
Copy link
Member

Before I introduced the '--title' option the title was hardcoded to "Head", this was the reason for using this as a default. But I'll change the default and update the test data.

@Spacetown
Copy link
Member

#374 would be great for updating the test data. :-)

Spacetown added a commit to Spacetown/gcovr that referenced this issue May 27, 2020
- Default for option --title changed to "GCC Code Coverage Report".
@Spacetown
Copy link
Member

Search and replace with RegEx did a great work.

latk pushed a commit that referenced this issue May 28, 2020
- Default for option --title changed to "GCC Code Coverage Report".
@latk
Copy link
Member
latk commented May 28, 2020

Fixed by #378, thanks to @Spacetown!

@latk latk closed this as completed May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0