def remove_multiple_newlines(content):
    """
    mdoc format gives a warning if multiple newlines are put
    into a document.

    To suppress this warning, we strip multiple newlines

    :returns: str
    """
    flt = content

    # remove double newlines
    flt = flt.replace('\n\n\n\n', '\n')
    flt = flt.replace('\n\n\n', '\n')
    flt = flt.replace('\n\n', '\n')

    return flt