Skip to content

[html] Fix #7166: off-by-one error in LineNumbers.java - #7167

Merged
zbynek merged 2 commits into
pmd:mainfrom
UncleOwen:issue-7166-html-endcolumn-off-by-one
Oct 18, 2026
Merged

zbynek merged 2 commits into
pmd:mainfrom
UncleOwen:issue-7166-html-endcolumn-off-by-one

Conversation

@UncleOwen

@UncleOwen UncleOwen commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Describe the PR

This PR fixes on off-by-one error in LineNumbers.java, causing the end location of all nodes in pmd-html to be off by one.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-10-08 12:19:09+00:00 for 01bdb96)

@zbynek
zbynek merged commit d422450 into pmd:main Oct 18, 2026
13 checks passed
@UncleOwen
UncleOwen deleted the issue-7166-html-endcolumn-off-by-one branch October 18, 2026 10:52
@adangel adangel added this to the 7.29.0 milestone Oct 18, 2026
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.

[html] endcolumn of nodes is off-by-one

3 participants