protected void endParagraph(StringBuilder buffer, XHTMLContentHandler xhtml)
            throws SAXException {
        lazilyStartParagraph(xhtml);

        xhtml.characters(buffer.toString());
        buffer.setLength(0);
        xhtml.endElement("p");
        startedP = false;
    }
This assumes that the &lt;p&gt; was started before you get here.
And the user is required to close the &lt;p&gt; at the end of the document.
<p>
These are currently handled by {@link #extract(WPInputStream, XHTMLContentHandler)}.

@param xhtml
@throws SAXException
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/wordperfect/WPDocumentAreaExtractor.java