There is a small change to make the paragraph compatible with XHTML. That way I can further parse the output with an XML parser. If the paragraph is empty, then nothing will happen so we can immediately write <p/> (if you'd rather, you could write <p></p>, but either way should work in any modern browser.)
diff ophir.php.1 ophir.php
157c157,162
< $html .= "\n<p>";
---
> if($xml->isEmptyElement) {
> $html .= "\n<p/>";
> }
> else {
> $html .= "\n<p>";
> }
Also the <br/> tag needs a slash so we can do this in the translation table.
$translation_table['text:line-break'] = 'br/';
There is a small change to make the paragraph compatible with XHTML. That way I can further parse the output with an XML parser. If the paragraph is empty, then nothing will happen so we can immediately write
<p/>(if you'd rather, you could write<p></p>, but either way should work in any modern browser.)Also the
<br/>tag needs a slash so we can do this in the translation table.