Last active
August 9, 2016 20:34
-
-
Save crittermike/306749 to your computer and use it in GitHub Desktop.
Auto tab size in Gedit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if view.get_insert_spaces_instead_of_tabs(): | |
tabsize = view.get_tab_width() | |
spaces = "" | |
for i in range(tabsize): | |
spaces += " " | |
after = after.replace("\t",spaces) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment