import io


def format_numbers(numbers, indent):
    """Format an array as comma-separated values across multiple lines.

    Arguments:
      data: Array of numbers to write
      indent: Indentation for each line, a string
    Returns:
      A multiline string containing the code, with indentation before every line
      including the first. There is no final newline.
    """
    fp = io.StringIO()
    fp.write(indent)
    rem = 80 - len(indent)

    def advance(n):
        nonlocal rem
        if rem < n:
            fp.write("\n")
            fp.write(indent)
            rem = 80 - len(indent)
        rem -= n

    for n in numbers[:-1]:
        s = str(n) + ","
        advance(len(s))
        fp.write(s)
    s = str(numbers[-1])
    advance(len(s))
    fp.write(s)
    return fp.getvalue()