Skip to content

Proposed fix for convert to tabs #6

Description

@jandor64

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions