fix the way tabs are used

The previous code just assumed a tab was 4 spaces wide.
This is not true, because a tab can be between 1 and 4 spaces wide.
This commit is contained in:
2021-12-20 19:44:46 +01:00
parent 3c27913e75
commit ffea831e2d
4 changed files with 75 additions and 20 deletions

View File

@@ -4,7 +4,7 @@
0123456789012345678901234567890123456789
tab indentation:
1 2 3 4 5
- 1-- 2--- 3---- 4-------5
- 1-- 2-- 3- 4---5
--------1-------1-------1-------1-------1
mmmmmmmm1mmmmmmm1mmmmmmm1mmmmmmm1mmmmmmm1
1 1 1 1 1