def group2text(group):
    """
    Returns formatted content of namelist group ``&TRACER``.
    """

    lines = ['&TRACER']
    for key, value in group.items():

        if key == '' or value == '':
            continue

        if key == 'yshort_name':
            value = "'%s'" % value

        lines.append('    %s = %s,' % (key, value))
    lines.append('/\n')

    return '\n'.join(lines)