from textwrap import dedent


def formatHelp(help, sep=' '):
    """
    Dedent help text and strip blank lines.

    @returns: A "short help" and the complete help
    @rtype: C{(shortHelp, help)}
    """
    lines = [line.strip()
             for line in dedent(help).splitlines()
             if line.strip()]
    return lines[0], sep.join(lines)