def _discard_newlines(parm: str, start: int) -> int:
    """Discard any newline characters.

    :param parm: The parameter data.
    :param start: The start index.
    :return: The start index offset to discard any newlines

    """
    pos = start

    while pos < len(parm):
        if parm[pos] not in ("\r", "\n"):
            break

        pos += 1

    return pos