def _html_apply_colors(self, match):
        string = match.group()
        end = string.find('}')
        if end < 0:
            return string
        color = string[2:end]
        text = string[end + 1:]
        return self.html_string(text, 0, color)