def has_text(p):
return '<STR_LIT>' != etree.tostring(p, encoding=unicode, method='<STR_LIT:text>').strip()<EOL>
It is possible for a ``p`` tag in document.xml to not have any content. If
this is the case we do not want that tag interfering with things like
lists. Detect if this tag has any content.