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

Character precise matches #1695

Merged
merged 9 commits into from
Apr 19, 2024
Merged

Character precise matches #1695

merged 9 commits into from
Apr 19, 2024

Conversation

Kr0nox
Copy link
Member

@Kr0nox Kr0nox commented Apr 9, 2024

Previously JPlag could only display matches per line. This made it difficult to see where some matches ended and could even hide matches entirely.
This PR adds information to the report and displays it, so matches are highlighted character precise.
This PR is backwards compatible with 5.0.0

When writing the comparison report, JPlag now adds information about the start and end column to each match.
The report viewer reads that information and saves it. Code displaying was reworked, so that each line is now its own component. This component calculates which parts of the line need to be highlighted accordingly.

The columns might not be calculated correctly in some language modules, that save start and length not correctly when parsing.

grafik

@Kr0nox Kr0nox added enhancement Issue/PR that involves features, improvements and other changes major Major issue/feature/contribution/change report-viewer PR / Issue deals (partly) with the report viewer and thus involves web-dev technologies labels Apr 9, 2024
@Kr0nox Kr0nox linked an issue Apr 9, 2024 that may be closed by this pull request
@Kr0nox Kr0nox added this to the 5.1.0 milestone Apr 9, 2024
Copy link

sonarcloud bot commented Apr 9, 2024

Copy link

sonarcloud bot commented Apr 9, 2024

@tsaglam tsaglam changed the title Character prexise matches Character precise matches Apr 10, 2024
@tsaglam tsaglam merged commit 8f0daec into develop Apr 19, 2024
45 checks passed
@tsaglam tsaglam deleted the report-viewer/match-in-line branch May 2, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes major Major issue/feature/contribution/change report-viewer PR / Issue deals (partly) with the report viewer and thus involves web-dev technologies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Report Viewer can not display multiple matches in the same line
2 participants