def _html_class_str_from_tag(self, tag):
if "<STR_LIT>" not in self.extras:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>try:<EOL><INDENT>html_classes_from_tag = self.extras["<STR_LIT>"]<EOL><DEDENT>except TypeError:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>if tag in html_classes_from_tag:<EOL><INDENT>return '<STR_LIT>' % html_classes_from_tag[tag]<EOL><DEDENT><DEDENT>return "<STR_LIT>"<EOL>
Get the appropriate ' class="..."' string (note the leading
        space), if any, for the given tag.