

def parse_lines(source):
    'Reads raw text input and generates paragraph objects.\n\n    Returns a Screenplay object.\n\n    '
    source = (_preprocess_line(line) for line in source)
    title_page_lines = list(takewhile((lambda line: (line != '')), source))
    title_page = parse_title_page(source)
    if title_page:
        return Screenplay(title_page, parse_body(source))
    else:
        return Screenplay({
            
        }, parse_body(itertools.chain(title_page_lines, [''], source)))

dataset/ETHPy150Open vilcans/screenplain/screenplain/parsers/fountain.py parse_lines/VarMisuse@50/98 `title_page_lines`->`source`