-
Notifications
You must be signed in to change notification settings - Fork 902
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
Rustfmt sometimes breaks lists in doc-comments #4041
Comments
Confirming I can reproduce this with //! List:
//! - Sub list:
//! + very long #1 blah blah blah blah blah blah blah blah blah blah blah blah
//! + very long #2 blah blah blah blah blah blah blah blah blah blah blah blah
For anyone wanting to work on this this issue is that we don't consider The relevant code can be found here: Lines 433 to 453 in a451a39
|
linking tracking issue for |
Maybe I can help this! |
@thaqib0437, that's great news! feel free to reach out if you have any questions |
Is there a guide on building, testing my changes with custom inputs, and adding teat cases? |
@thaqib0437 check out the Create Test Cases section of the contributing guide. Running |
Trying to add a test case but its not running with
|
Created a PR |
Rustfmt breaks sub-list with
+
(diff fromcargo +nightly fmt -- --check --config "wrap_comments=true"
)Changing
+
in sublist to-
fixes that.The text was updated successfully, but these errors were encountered: