Flush draw buf at end of each parse call

This commit is contained in:
Kovid Goyal
2016-11-24 13:43:28 +05:30
parent c82f6aea95
commit 41e583842e
3 changed files with 13 additions and 2 deletions

View File

@@ -52,7 +52,8 @@ class TestParser(BaseTest):
q = []
for args in cd:
if args[0] == 'draw':
current += args[1]
if args[1] is not None:
current += args[1]
else:
if current:
q.append(('draw', current))