diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2015-04-12 07:06:31 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2015-04-12 07:06:31 +0200 |
| commit | ab827eaf935aba776715c4693ec9f320008a6708 (patch) | |
| tree | ba7359fe1275103cc623ccff811d72dc74e94300 /sqlparse | |
| parent | 9dc700b6ebc2fc8582624c071cb6b86f7084f901 (diff) | |
| download | sqlparse-ab827eaf935aba776715c4693ec9f320008a6708.tar.gz | |
Update offset when adding line break (fixes 184).
This change fixes a regression introduced in 8c5c0684ac61ab7d0c5e77881728c8106f2877f9.
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/filters.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlparse/filters.py b/sqlparse/filters.py index 9c0a476..676344f 100644 --- a/sqlparse/filters.py +++ b/sqlparse/filters.py @@ -347,6 +347,7 @@ class ReindentFilter: nl = self.nl() added.add(nl) tlist.insert_before(token, nl) + offset += 1 token = _next_token(tlist.token_index(nl) + offset) def _split_statements(self, tlist): |
