Something is bugging me for quite a while, it may sound silly but it breaks my flow because I have to correct whonix indentation, and change my editor indentation to 3 only for whonix file just doesn’t work if you are not always working with whonix only files.
Currently whonix is using
3 spaces for indentation, it is not standard to use an odd number. I also don’t know of anyone who manually indents to 3 spaces, they either indent to
8, so my guess is that past and present developers use(d) their editor configuration to set 3 spaces for indentation.
Can this be corrected by the great search and replace to all whonix files?
Pattern tor search for is
^ .* for the first degree of indentation and adding 3 spaces for other levels of indentation.
grep --color=auto "^ .*" /usr/bin/whonix-gateway-firewall, of literally any whonix file and you will see it is using 3 spaces for indentation.
I made this for 5 levels of indentation:
sed \ -e "s/^ / /g" \ -e "s/^ / /g" \ -e "s/^ / /g" \ -e "s/^ / /g" \ -e "s/^ / /g" \ FILE
15 spaces becomes 10, 12 become 8, 9 become 6, 6 becomes 4, 3 becomes 2.
I prefer 2 spaces because then it has less chances or hitting the 79 char mark, but 4 spaces would also be fine, but not 3.