--line-ranges
formats entire file when ranges are at EOF
#4264
Labels
T: bug
Something isn't working
--line-ranges
formats entire file when ranges are at EOF
#4264
Line ranges seem to format an entire file when the range goes to the end of the file
microsoft/vscode-black-formatter#472
For example, take this code:
** Ensure empty last line **
And run it with these arguments:
The resulting error is:> cannot format file.py: INTERNAL ERROR: ...Expected behavior
Only
stu='vwx'
being formatted, and not lines 1-3Environment
Additional context
The text was updated successfully, but these errors were encountered: