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

Request: flag that enables re-inlining of comments #70

Open
jamesbraza opened this issue Jul 21, 2024 · 0 comments
Open

Request: flag that enables re-inlining of comments #70

jamesbraza opened this issue Jul 21, 2024 · 0 comments

Comments

@jamesbraza
Copy link

jamesbraza commented Jul 21, 2024

Hello! I have a tool that "un-inlines" comments in a TOML list like so (coming from astral-sh/rye#1255 (comment)):

foo = [
---    "a",  # Comment
+++    "a",
+++    # Comment
    "b",
]

I am wondering, would toml-sort be willing to add a flag that turns on re-inlining of comments? So it can essentially do this:

foo = [
---    "a",
---    # Comment
+++    "a",  # Comment
    "b",
]
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

No branches or pull requests

1 participant