Skip to content

Commit

Permalink
Update offset when adding line break (fixes 184).
Browse files Browse the repository at this point in the history
This change fixes a regression introduced in 8c5c068.
  • Loading branch information
andialbrecht committed Apr 12, 2015
1 parent 9dc700b commit ab827ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlparse/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def _next_token(i):
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):
Expand Down

0 comments on commit ab827ea

Please sign in to comment.