Skip to content

Keep blank lines of the license when reading an existing header - #808

Merged
slachiewicz merged 1 commit into
masterfrom
agent/header-blank-lines
Nov 8, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/header-blank-lines

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Reading an existing header skipped every empty line, so with trimHeaderLine a second update-file-header run that changed another part of the header dropped the blank lines of the license text. Only the comment start and end lines are skipped now. The new ISSUE-347 integration test runs the goal twice on an HTML file.

Closes #347

Verified: mvn -B -ntp verify -Prun-its -Dinvoker.test=ISSUE-347,update-file-header-test-mojo β†’ 176 unit tests, 2 ITs passed; ISSUE-347 fails without the fix

@slachiewicz slachiewicz added the bug Something isn't working label Nov 8, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 8, 2026 22:42
@slachiewicz
slachiewicz merged commit d49c6b6 into master Nov 8, 2026
15 checks passed
@slachiewicz
slachiewicz deleted the agent/header-blank-lines branch November 8, 2026 22:43
@github-actions github-actions Bot added this to the 2.8.1 milestone Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trimHeaderLine removes empty lines from license text in html files

1 participant