def text_at_line(view, line_num):
    if line_num < 0:
        return None

    max_line_num, _ = view.rowcol(view.size())
    if line_num > max_line_num:
        return None

    point = view.text_point(line_num, 0)
    line_region = view.line(point)
    return view.substr(line_region)
Generic method used to generate a version entity.
dataset/ETHPy150Open demon386/SmartMarkdown/utilities.py/text_at_line--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/api/views/versions.py/ViewBuilder.build