diff --git a/tab.py b/tab.py index 354bb49..5782950 100644 --- a/tab.py +++ b/tab.py @@ -473,9 +473,9 @@ class StackTabber2(Tabber): # remove implicit continuation if self.end_at_eof and i + start == end: - self._pop_while('continue', 'control') + self._pop_while('continue', 'control', 'pre-control') elif self.end_at_tokens.get(name, {}).get(s): - self._pop_while('continue', 'control') + self._pop_while('continue', 'control', 'pre-control') # add implicit continuation top = self._peek()