-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use spaces instead of tabs for spacing #243
Comments
For me, the terminal is the reference on how it should look. This was what I was after: And since Vim agrees, this has been the easiest and most logical way to do the alignment for me. I'm sure there will be at least as much re-alignment commits even if we would move to spaces. The README is another story, that could use spaces for the tables as they actually work better when editing them. |
The second screenshot is from my terminal (nano editor in xfce4-terminal), so tabs width is apparently different between terminal emulators too (idk which one you use).
Nope, since our terminal emulators use monospace fonts (all characters have the same width). Edit: for science I just changed my terminal font to Comic Sans MS and it looks like xfce4-terminal even forces non-monospace fonts to monospace. Made my eyes bleed so I reverted to Hack. |
That's what tabs do. Look different depending on your editor, your terminal, your font, the weather... Spaces don't suffer this problem. Anyway I agree it's a minor problem. xfce4-terminal 0.8.3-1 and nano 2.7.4-1 here by the way (Debian stretch). |
What I meant with this, is that it's even easier to get off-by-ones etc. and we would still need to re-adjust 'em from time to time. |
user.js and associated documentation currently uses tabs for element spacing and alignment. As tabs have different widths depending on the environment, this leads to different indentation for different users and contributors, and unneeded/not-working alignment work (eg 402268a). Attached screenshots of random user.js and documentation sections in 2 editors I frequently use (mousepad and nano):
The tabs-vs-spaces question has been largely debated all over the Internet, but the most commonly accepted convention is that:
https://softwareengineering.stackexchange.com/questions/57/tabs-versus-spaces-what-is-the-proper-indentation-character-for-everything-in-e/66#66
We should apply this convention and use spaces to align elements.
The text was updated successfully, but these errors were encountered: