Skip to content
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

more sophisticated line breaking in wdl-format #293

Open
a-frantz opened this issue Jan 15, 2025 · 0 comments
Open

more sophisticated line breaking in wdl-format #293

a-frantz opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@a-frantz
Copy link
Member

#242 introduces a MaxLineLength configuration for wdl-format. This is a great improvement, but leaves some more to be desired. It leads to some awkward line breaks. This can be improved by making the algorithm a little more sophisticated.

Potential improvements:

  • a priority list of potential line breaks for each line we can backtrack through and select "the most desirable" token to line break on.
  • a stack for "matching tokens" that should be line broken in tandem (open/close parenthesis/brackets etc.)
@a-frantz a-frantz self-assigned this Jan 15, 2025
@a-frantz a-frantz added the enhancement New feature or request label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant