

def parse_title_page(lines):
    'Parse the title page.\n\n    Spec: http://fountain.io/syntax#section-titlepage\n    Returns None if the document does not have a title page section,\n    otherwise a dictionary with the data.\n    '
    result = {
        
    }
    it = iter(lines)
    try:
        line = it.next()
        while True:
            key_match = title_page_key_re.match(line)
            if (not key_match):
                return None
            (key, value) = line.groups()
            if value:
                result.setdefault(key, []).append(value)
                line = it.next()
            else:
                for line in it:
                    value_match = title_page_value_re.match(line)
                    if (not value_match):
                        break
                    result.setdefault(key, []).append(value_match.group(1))
                else:
                    break
    except StopIteration:
        pass
    return result

dataset/ETHPy150Open vilcans/screenplain/screenplain/parsers/fountain.py parse_title_page/VarMisuse@70/156 `key_match`->`line`