Skip to content

[api-diff] Prevent blank lines between new attributes + unchanged member#53848

Open
jeffhandley wants to merge 1 commit intodotnet:mainfrom
jeffhandley:jeffhandley/apidiff-blanklines
Open

[api-diff] Prevent blank lines between new attributes + unchanged member#53848
jeffhandley wants to merge 1 commit intodotnet:mainfrom
jeffhandley:jeffhandley/apidiff-blanklines

Conversation

@jeffhandley
Copy link
Copy Markdown
Member

This bug was found during the review of dotnet/core#10351. Worked around it by removing the blank lines in dotnet/core@41ec2c1.

The scenario is when attributes are being added to otherwise unchanged API members.

@jeffhandley jeffhandley requested a review from a team as a code owner April 14, 2026 06:52
Copilot AI review requested due to automatic review settings April 14, 2026 06:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes ApiDiff’s markdown diff output formatting for the case where only attributes change on an otherwise unchanged API member, ensuring no extra blank/whitespace-only lines are emitted between the attribute diff and the unchanged member signature.

Changes:

  • Skip whitespace-only lines when emitting “unchanged” member text under modified attributes (to avoid visual gaps).

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