(self, c)
return out
Process a single char, no box drawing protection
Process a single char, no box drawing protection
Process a single char no box drawing protection
def _process_nobox(self, c):
        """Process a single char, no box drawing protection """
        out = []
        if c in self._preserve:
            # control char; flush buffer as SBCS and add control char unchanged
            out += self._flush() + [c]
            return out
        elif self._buf:
            if c in self._cp.trail:
                # add a DBCS character
                self._buf += c
                out += self._flush()
                return out
            else:
                # flush buffer
                out += self._flush()
        if c in self._cp.lead:
            self._buf = c
        else:
            out.append(c)
        return out
def _process_nobox ( self , c ) : out = [ ] if c in self . _preserve : # control char; flush buffer as SBCS and add control char unchanged out += self . _flush ( ) + [ c ] return out elif self . _buf : if c in self . _cp . trail : # add a DBCS character self . _buf += c out += self . _flush ( ) return out else : # flush buffer out += self . _flush ( ) if c in self . _cp . lead : self . _buf = c else : out . append ( c ) return out