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

wrap_comments removes spaces after leading dot #5835

Closed
xxchan opened this issue Jul 17, 2023 · 1 comment · Fixed by #5839
Closed

wrap_comments removes spaces after leading dot #5835

xxchan opened this issue Jul 17, 2023 · 1 comment · Fixed by #5839
Labels
a-comments only-with-option requires a non-default option value to reproduce p-low

Comments

@xxchan
Copy link
Contributor

xxchan commented Jul 17, 2023

Is this expected?

❯ cargo fmt --check
Diff in /private/tmp/tmp/src/main.rs at line 1:
 fn main() {
     // f   3    .
     // t   3    .
-    // .   .    3.5
-    // .   .    -4.3
-    // .   .    .
+    // . .    3.5
+    // . .    -4.3
+    // . .    .
 }
rustfmt 1.6.0-nightly (0e8e857b 2023-07-16)
@xxchan xxchan changed the title wrap_comments removes spaces between . wrap_comments removes spaces between leading 2 .s Jul 17, 2023
@xxchan xxchan changed the title wrap_comments removes spaces between leading 2 .s wrap_comments removes spaces between leading 2 . Jul 17, 2023
@xxchan xxchan changed the title wrap_comments removes spaces between leading 2 . wrap_comments removes spaces after leading dot Jul 17, 2023
@xxchan
Copy link
Contributor Author

xxchan commented Jul 17, 2023

Oh, one leading dot is actually the problem.

Diff in /private/tmp/tmp/src/main.rs at line 1:
 fn main() {
-    // .   a
+    // . a
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-comments only-with-option requires a non-default option value to reproduce p-low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants