'foreground', DEFAULT_STYLE['foreground'])
style['foreground'] = f
elif code == 27:
- _LOG.debug('skipping {}'.format(self))
+ _LOG.debug('skipping {} code {}'.format(self.name, code))
elif code >= 30 and code <= 37:
style['foreground'] = self.colors[code - 30]
elif code == 39: # default text color
def parse(self, element, text):
chunks = self._replace_control_codes(text)
chunks = self._decode_text(chunks)
+ for chunk in chunks:
+ _LOG.debug(chunk)
chunks = self._replace_tabs(chunks)
chunks = self._merge_adjacent_text(chunks)
chunks = self._remove_operating_system_commands(chunks)