def docstring_to_help(name: str, docstring: str):
    """
    Converts a function docstring to a more viewable format for MUD clients.
    Mainly used inside `src/mud/commands` commands for quick help documentation in-code.
    """

    split_doc = docstring.split('\n') # split by newline

    # generate the header of the help, and the footer, examples:
    # ------ [ name #help ] ---------------------------
    # -------------------------------------------------
    header = f"""------ [ {name} #help ] -""".ljust(70, "-")
    footer = "".ljust(70, "-")

    split_doc.insert(0, header)
    split_doc.append(footer)

    return "\r\n".join(split_doc)