It can be seen that gedit have a default Tab width set to 8 spaces, while 4 spaces is commonly used among all the other popular editors like Notepad++, sublime and services such as github and even cloud editors and Ide's ex. Cloud9 IDE.
Please set default Tab width to 4 spaces.