-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix unnecessary newline addition on sub-tables #70
Conversation
Can you add a test that for this new case if there's no newline we add it? |
Try that! |
content = """ | ||
[tool.mypy] | ||
a = 0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this newline too here 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see why you did not do it. 🤔 If you remove this line this patch will not add the newline in.
I've pushed an ignore for the coverage issue ( nedbat/coveragepy#1480 ). We could make pyproject-fmt format all space between tables and sub-tables, but perahps first release this to fix the bug? |
Fixes #69.