RTEditor/src/main/java/com/onegravity/rteditor/converter/tagsoup/HTMLWriter.java
public void endDocument() throws SAXException {
        writeText4Links();
        write('\n');
        super.endDocument();
        try {
            flush();
        } catch (IOException e) {
            throw new SAXException(e);
        }
    }
public void endDocument() throws SAXException {
        writeText4Links();
        write('\n');
        super.endDocument();
        try {
            flush();
        } catch (IOException e) {
            throw new SAXException(e);
        }
    }
Write a newline at the end of the document.
<p>
Pass the event on down the filter chain for further processing.

@throws org.xml.sax.SAXException If there is an error writing the newline, or if a handler
further down the filter chain raises an exception.
@see org.xml.sax.ContentHandler#endDocument