Skip to content

Instantly share code, notes, and snippets.

@cwillu
Forked from crittermike/gist:306749
Created February 17, 2010 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwillu/306753 to your computer and use it in GitHub Desktop.
Save cwillu/306753 to your computer and use it in GitHub Desktop.
if view.get_insert_spaces_instead_of_tabs():
tabsize = view.get_tab_width()
spaces = " " * tabsize
after = after.replace("\t",spaces)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment