Skip to content

Preserve line breaks in multiline annotations - #54

Merged
vanderlee merged 4 commits into
agent/modernize-cifrom
agent/preserve-description-line-breaks
Aug 3, 2026
Merged

Preserve line breaks in multiline annotations#54
vanderlee merged 4 commits into
agent/modernize-cifrom
agent/preserve-description-line-breaks

Conversation

@vanderlee

@vanderlee vanderlee commented Aug 3, 2026

Copy link
Copy Markdown
Owner

What changed

  • Preserve source line boundaries when a @rest\... annotation continues onto following comment lines.
  • Update the existing line-continuation regression to expect newline-delimited description text.

Why

The parser currently joins every continuation with a space, collapsing Markdown lists and paragraphs into a single line before they reach Swagger UI.

Dependency

This is a stacked draft based on PR #52 so the parser test runs across PHP 8.0–8.5.

Validation

The exact parser and test changes were applied successfully through GitHub Actions. The resulting PR contains two focused three-line diffs.

Closes #35.

@vanderlee
vanderlee marked this pull request as ready for review August 3, 2026 18:56
@vanderlee
vanderlee merged commit 853dea0 into agent/modernize-ci Aug 3, 2026
1 of 3 checks passed
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.

1 participant