@Override
    public void endElement(String uri, String local, String name) throws SAXException {
        if (!AUTO.contains(name)) {
            super.endElement(uri, local, name);
            if (XHTML.equals(uri) && ENDLINE.contains(name)) {
                newline();
            }
        }
    }
Ends the given element. Block elements are automatically followed
by a newline character.
tika-core/src/main/java/org/apache/tika/sax/XHTMLContentHandler.java