import re


def clean_extra_newlines(textbody):
    """Removes excess newlines"""
    multi_returns_re = re.compile(r"\n\n+")
    textbody = multi_returns_re.sub(r"\n\n", textbody)
    return textbody