Skip to content
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

Proposed fix for convert to tabs #6

Open
jandor64 opened this issue Feb 25, 2013 · 0 comments
Open

Proposed fix for convert to tabs #6

jandor64 opened this issue Feb 25, 2013 · 0 comments

Comments

@jandor64
Copy link

Hi, due to my unfamiliarity with git I'm not making a proper pull request.

However, I've added these lines to handle converting to tabs, beginning on line 30 of
FormatSQL.py

default_formatted = sqlparse.format(s, keyword_case="upper", reindent=True, indent_width=indent_size)
if settings.get("translate_tabs_to_spaces"):
    return default_formatted
else:
    tab_formatted = default_formatted.replace('    ',"\t")
    return tab_formatted

This is working for me, sublime text 2.0.1, windows 7, tabs on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant