(self, c)
return out
Process a single char with box drawing protection; case 3
Process a single char with box drawing protection; case 3
Process a single char with box drawing protection ; case 3
def _process_case3(self, c):
        """Process a single char with box drawing protection; case 3 """
        out = []
        if c not in self._cp.lead:
            out += self._flush() + [c]
        elif self._cp.connects(self._buf[-1:], c, self._bset):
            self._last = self._buf[-1:]
            # output box drawing
            out += self._flush(1) + self._flush(1) + [c]
            # goes to case 4
        else:
            out += self._flush()
            self._buf = c
            self._bset = -1
            # goes to case 1
        return out
def _process_case3 ( self , c ) : out = [ ] if c not in self . _cp . lead : out += self . _flush ( ) + [ c ] elif self . _cp . connects ( self . _buf [ - 1 : ] , c , self . _bset ) : self . _last = self . _buf [ - 1 : ] # output box drawing out += self . _flush ( 1 ) + self . _flush ( 1 ) + [ c ] # goes to case 4 else : out += self . _flush ( ) self . _buf = c self . _bset = - 1 # goes to case 1 return out