-
Notifications
You must be signed in to change notification settings - Fork 35
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
Unaligned display when one line source given #57
Comments
... while change source to
|
Change |
I wrote down what I found, even if my solution isn't accepted. What I FoundI changed
Upon closer comparison, you can see that the message for According to my research, the number of spaces to insert at the beginning of each line is based on the line number width. My IdeaNo matter what the line number width is, we always start message from col 2 "at a minimum", which is what is #142 for. cc @epage |
- Line number width is 1 if max line number is 0 - Line number witdh is 0 if max line number is None - Update test_line_number_0 in tests/formatter.rs to reflect new behavior - Fix issue rust-lang#57
Result:
As you can see the
|
is not aligned.Code:
The text was updated successfully, but these errors were encountered: