Skip to content

Fix #9501: htmlreport: Line number position is shifted#2480

Merged
amai2012 merged 1 commit into
cppcheck-opensource:masterfrom
versat:htmlreport_fix_9501_linenumbers
Jan 9, 2020
Merged

Fix #9501: htmlreport: Line number position is shifted#2480
amai2012 merged 1 commit into
cppcheck-opensource:masterfrom
versat:htmlreport_fix_9501_linenumbers

Conversation

@versat

@versat versat commented Jan 8, 2020

Copy link
Copy Markdown
Collaborator

The 1 pixel dotted border that is drawn around every Cppcheck error
message adds 2 extra pixels for every line with an error message.
For more than very few error messages in a file, the discrepancy is
clearly visible and line numbering gets wrong.
This commit removes the dotted border as it is not necessary.
The error message is highlighted with a red background and is still
clearly visible.
Ticket: https://trac.cppcheck.net/ticket/9501

The 1 pixel dotted border that is drawn around every Cppcheck error
message adds 2 extra pixels for every line with an error message.
For more than very few error messages in a file the discrepancy is
clearly visible and line numbering gets wrong.
This commit removes the dotted border as it is not necessary.
The error message is highlighted with a red background and is still
clearly visible.
@amai2012 amai2012 merged commit bca5d0d into cppcheck-opensource:master Jan 9, 2020
@versat versat deleted the htmlreport_fix_9501_linenumbers branch January 9, 2020 07:51
versat added a commit to versat/cppcheck that referenced this pull request Jan 13, 2020
…source#2480)

The 1 pixel dotted border that is drawn around every Cppcheck error
message adds 2 extra pixels for every line with an error message.
For more than very few error messages in a file the discrepancy is
clearly visible and line numbering gets wrong.
This commit removes the dotted border as it is not necessary.
The error message is highlighted with a red background and is still
clearly visible.
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