(self, c)
return out
Process a single char with box drawing protection; case 2
Process a single char with box drawing protection; case 2
Process a single char with box drawing protection ; case 2
def _process_case2(self, c):
        """Process a single char with box drawing protection; case 2 """
        out = []
        if c not in self._cp.lead:
            out += self._flush() + [c]
            # goes to case 0
        else:
            for bset in (0, 1):
                if self._cp.connects(self._buf[-1:], c, bset):
                    self._bset = bset
                    # take out only first byte
                    out += self._flush(1)
                    self._buf += c
                    break
                    # goes to case 3
            else:
                # no connection found
                out += self._flush()
                self._buf += c
                # goes to case 1
        return out
def _process_case2 ( self , c ) : out = [ ] if c not in self . _cp . lead : out += self . _flush ( ) + [ c ] # goes to case 0 else : for bset in ( 0 , 1 ) : if self . _cp . connects ( self . _buf [ - 1 : ] , c , bset ) : self . _bset = bset # take out only first byte out += self . _flush ( 1 ) self . _buf += c break # goes to case 3 else : # no connection found out += self . _flush ( ) self . _buf += c # goes to case 1 return out