'End the <text:span>'

def e_text_span(self, tag, attrs):

    self.writedata()
    c = attrs.get((TEXTNS, 'style-name'), None)
    special = 'span'
    if c:
        c = c.replace('.', '_')
        special = special_styles.get(('S-' + c))
        if (special is None):
            special = 'span'
    self.closetag(special, False)
    self.purgedata()
