

def append_transition(self, paragraphs):
    if (len(self.lines) != 1):
        return False
    match = transition_re.match(self.lines[0])
    if (not match):
        return False
    (greater_than, text, to_colon) = match.groups()
    if greater_than:
        paragraphs.append(Transition(_string_to_rich((text.upper() + (to_colon or '')))))
        return True
    if (text.isupper() and to_colon):
        paragraphs.append(Transition(_string_to_rich((text + self))))
        return True
    return False

dataset/ETHPy150Open vilcans/screenplain/screenplain/parsers/fountain.py InputParagraph.append_transition/VarMisuse@128/162 `to_colon`->`self`