from textwrap import dedent


def dedent_strip_nodetext_formatter(nodetext, has_options, caller=None):
    """
    Simple dedent formatter that also strips text
    """
    return dedent(nodetext).strip()