'Build the formatted summary and description that will be
part of the reported bug.'

def _build_summary_and_desc(self, summary, desc, tback, fname, plugins, autogen, email):

    if summary:
        bug_summary = summary
    elif tback:
        bug_summary = tback.split('\n')[(-2)]
    else:
        m = hashlib.md5()
        m.update(time.ctime())
        bug_summary = m.hexdigest()
    summary = ('%sBug    Report    -    %s' % (((autogen and '[Auto-Generated]    ') or ''), bug_summary))
    if (desc.strip() == DEFAULT_BUG_QUERY_TEXT.strip()):
        desc = ''
    if (email is not None):
        email_fmt = '\n\nThe    user    provided    the    following    email    address    forcontact:    %s'
        desc += (email_fmt % email)
    details = ''
    if desc:
        details += desc
        details += '\n'
    details += '##    Version    Information\n'
    details += '```\n'
    details += get_versions()
    details += '\n```\n'
    details += '##    Traceback\n'
    details += '```pytb\n'
    details += tback
    details += '\n```\n'
    if plugins:
        details += '##    Enabled    Plugins\n'
        details += '```python\n'
        details += plugins
        details += '\n```\n'
    return (summary, details)
