def pad_text(t: str, size: int) -> str:
    """Pad out text with supplied size using new lines.

    Note that the string provide will not be shrunk to the :param:`size`.

    :param t: the text to pad
    :param size: the length wanted.
    """
    pad_line = "This line is padding. Line number {line}\n"
    if len(t) > size - 1:
        return t
    padded = f"{t}\n"
    remain = max(size - len(padded), 0)
    num_lines = int(remain / len(pad_line))
    if num_lines > 0:
        padded = "{}{}".format(
            padded,
            "".join(pad_line.format(line=n)
                    for n in range(1, num_lines + 1)))
    remain = max(int(size - len(padded)), 0)
    if remain:
        padded = "{}{}".format(padded, "=" * remain)
    return padded