Skip to content

Use real line number when moving block indentation for close breaks. #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

dylansturg
Copy link
Contributor

The previous behavior carried a block indent onto the current line when a close break occurred at the start of a line. That happened because of moving the block indentation between active open breaks. Whenever the close break occurs on a different line than the open break, even at the start of a line, it should dedent that line.

@allevato allevato merged commit 9e3b9ec into swiftlang:master Apr 15, 2020
@dylansturg dylansturg deleted the fix_close_breaks_indenting branch July 31, 2020 20:25
aaditya-chandrasekhar pushed a commit to val-verde/swift-format that referenced this pull request May 20, 2021
* Add release workflow

* Add deploy workflow

* A release is a prerelease if its tag contains a dash

* Use matrix strategy to make workflow easier to update for new versions of Swift

* Make swift-doc target non-PHONY

* Create release artifacts compatible with Homebrew bottles

* Use SwiftDocOrg/update-homebrew-formula-action
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