'The text of the closing tag of this element, if there is one. If the
element contains text, no leading indentation is included.'

@property
def _end_tag(self):

    if self._text:
        tag = ('</%s>\n' % self._tagname)
    elif self._children:
        tag = ('%s</%s>\n' % (self._indent_str, self._tagname))
    else:
        tag = ''
    return tag
