Skip to content

Fix formatting edge cases and add newline_at_eof#32

Merged
lmichaudel merged 5 commits into
lmichaudel:mainfrom
lsfratel:main
Jul 11, 2026
Merged

Fix formatting edge cases and add newline_at_eof#32
lmichaudel merged 5 commits into
lmichaudel:mainfrom
lsfratel:main

Conversation

@lsfratel

@lsfratel lsfratel commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix wrapping for faultdef declarations and multiline declaration alignment
  • Fix assignment alignment around doc comments
  • Add newline_at_eof config option, defaulting to false
  • Stabilize alignment for long call declarations
  • Add align_string_concat formatter option

@ManuLinares

Copy link
Copy Markdown
Collaborator

Why the ternary in here got like this?

	ulong total_count    = ready ? compute_total_count(context, state, item)
		: 0;

@lsfratel

Copy link
Copy Markdown
Contributor Author

it’s because the test runs with an 80-column limit, and aligning the = pushes the ternary over that limit, since ternaries currently only wrap before :, the fallback moves to the next line

@lmichaudel
lmichaudel merged commit a7359e2 into lmichaudel:main Jul 11, 2026
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.

3 participants