def print_badges(badges):
    """Return TeX lines for a list of badges."""
    lines = []
    for badge in badges:
        if badge == 'dividertag':
            lines.append('\n\\divider\\smallskip\n\n')
        elif badge == 'br':
            lines.append('\\\\\\smallskip')
        else:
            lines.append('\\cvtag{' + badge + '}\n')
    return lines