Skip to content

Conversation

@zandivx
Copy link

@zandivx zandivx commented Oct 1, 2025

To enhance the great CLI option --strip-comments further the additional option --comment-spacing=N was implemented. That way people could e.g. specify --comment-spacing=2 to have a more 'pythonic' style for comments.

zandivx and others added 5 commits October 1, 2025 11:31
* feat: add whitespace option for string concatenation

* Fix concat operator formatting and add context checks

Address Qodo review comments:
- Add level and end_of_delim checks to avoid formatting // inside strings/comments
- Remove unsafe trailing rstrip that could strip string literal whitespace
- Enable concat spacing at whitespace level 4
- Add comprehensive test coverage for concat operator formatting

* Restore README.md from master

* fix(indent): realign mis-indented nested blocks

* Update example.f90

* Update example.f90

* Fix indentation in nested DO loops

* Update expected_results

* Update expected_results
* fix(indent): keep indent when at line limit

* Fix padding calculation for line length overflow

Address Qodo review: recompute padding in elif block to correctly
right-align lines at the line length limit when indent would overflow.
Update test expectations to match corrected behavior.

* Improve line splitting for long logical lines

* Guard line splitting for syntax-safe breakpoints

* Improve auto line splitting for strings and continuation layout

* Update expected results for nested-loop indentation

* Ensure indent pass splits long lines

* Test indent-only line splitting

* Refactor auto split insertion

* Split inline comments before enforcing line limits
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