Fix for textualgeneric.py
@@ -86,13 +86,12 @@ class TextualGeneric(Command):
for line in lines:
if self._last_not_full_line is not None:
line = self._last_not_full_line + line
- if self._cmd_output_started:
is_full_line = self.is_new_line(line)
+ if not is_full_line:
+ self._last_not_full_line = line
+ if self._cmd_output_started:
if is_full_line:
line = self._strip_new_lines_chars(line)
- self._last_not_full_line = None
- else:
- self._last_not_full_line = line
self.on_new_line(line, is_full_line)
else:
self._detect_start_of_cmd_output(line)
