v0.4.0
v0.4.0 introduces automatic detection of indentation characters. It works with any number of characters, and it will detect changes to indentation characters as well.
The behaviour is as follows (numbers are spaces):
selectIndent
given arguments of 4 as ours, 2 as base and 2 as theirs
✓ should return 4
given arguments of 4 as ours, 4 as base and 2 as theirs
✓ should return 2
given arguments of 4 as ours, 4 as base and 4 as theirs
✓ should return 4
given arguments of 2 as ours, 4 as base and 2 as theirs
✓ should return 2
given arguments of 2 as ours, 2 as base and 4 as theirs
✓ should return 4
given arguments of 2 as ours, 4 as base and 4 as theirs
✓ should return 2
See tests for more details.