The unindent option doesn't currently work with sliced code because the slicer trims code before unindenting happens. So the first line of code always has 0 spaces and no unindenting happens.
I've added a test case that fails without changes to the source. With these changes, sliced code can be properly unindented.
The
unindent
option doesn't currently work with sliced code because the slicer trims code before unindenting happens. So the first line of code always has 0 spaces and no unindenting happens.I've added a test case that fails without changes to the source. With these changes, sliced code can be properly unindented.