diff options
| author | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-08-07 13:09:32 +0200 |
|---|---|---|
| committer | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-08-07 13:09:32 +0200 |
| commit | e66c4285ba80380970757ebc8c95a0cf7709ff1f (patch) | |
| tree | 0adb02ac97c82995c8c09a9dfa543caeb7ed47b9 /sqlparse | |
| parent | 2219db82a5581f8db3f3e62c0bd3370fb5e11854 (diff) | |
| download | sqlparse-e66c4285ba80380970757ebc8c95a0cf7709ff1f.tar.gz | |
Blank lines to identify each option
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/formatter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sqlparse/formatter.py b/sqlparse/formatter.py index 5be6652..aee7da8 100644 --- a/sqlparse/formatter.py +++ b/sqlparse/formatter.py @@ -39,6 +39,7 @@ def validate_options(options): % reindent) elif reindent: options['strip_whitespace'] = True + indent_tabs = options.get('indent_tabs', False) if indent_tabs not in [True, False]: raise SQLParseError('Invalid value for indent_tabs: %r' % indent_tabs) @@ -46,6 +47,7 @@ def validate_options(options): options['indent_char'] = '\t' else: options['indent_char'] = ' ' + indent_width = options.get('indent_width', 2) try: indent_width = int(indent_width) |
