Generates rst admonition block given a bootstrap alert css class, title, and text

def get_admonition(cssclass, title, text):
    """ Generates rst admonition block given a bootstrap alert css class, title, and text"""
    rst = ("\n\n.. admonition:: " + title + "\n") if title else "\n\n.. note:: \n"
    rst += "\t:class: alert alert-" + cssclass + "\n\n"
    for line in text.splitlines():
        rst += "\t" + line + "\n"

    rst += "\n"
    return rst