Skip to content

Preserve leading ///usr/bin/env shebang comments on line 1. - #1547

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1010281488
Nov 27, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1010281488

Conversation

@copybara-service

Copy link
Copy Markdown

Preserve leading ///usr/bin/env shebang comments on line 1.

Leave single-line ///usr/bin/env ... comments at offset 0 (such as JBang shebang lines) untouched in JavaCommentsHelper.rewrite instead of formatting them as Markdown Javadoc, inserting a space after ///, or wrapping long lines.

Fixes #1215

Leave single-line `///usr/bin/env ...` comments at offset 0 (such as JBang shebang lines) untouched in `JavaCommentsHelper.rewrite` instead of formatting them as Markdown Javadoc, inserting a space after `///`, or wrapping long lines.

Fixes #1215

PiperOrigin-RevId: 1031169750
@copybara-service
copybara-service Bot merged commit b9ad5a0 into master Nov 27, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_1010281488 branch November 27, 2026 11:53
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.

Comments starting with /// should not be reformatted as // /

1 participant