Adding general test coverage.

This commit is contained in:
Michael Lazar
2016-08-10 01:32:02 -07:00
parent c096d7014c
commit 17425008b3
7 changed files with 1079 additions and 4 deletions

View File

@@ -728,7 +728,7 @@ class Terminal(object):
# space, assume that a newline operation was intended by the user
stack, current_line = [], ''
for line in text.split('\n'):
if line.endswith(' '):
if line.endswith(' ') or not line:
stack.append(current_line + line.rstrip())
current_line = ''
else: