Loading src/OdtConverter.php +11 −5 Original line number Diff line number Diff line Loading @@ -269,12 +269,18 @@ class OdtConverter { // Paragraph case 'text:p': //Just convert odf <text:p> to html <p> if ($xml->isEmptyElement) { // Self closed empty <text:p/> tag $this->html .= "\n<p> </p>"; } else { $tags = @$styles[$xml->getAttribute('text:style-name')]['tags']; if (!($tags && !in_array('blockquote', $tags))) { if (!(is_array($tags) && in_array('blockquote', $tags))) { // Do not print a <p> immediatly after or before a <blockquote> $opened_tags[] = 'p'; $this->html .= "\n<p>"; } } break; // Link Loading Loading
src/OdtConverter.php +11 −5 Original line number Diff line number Diff line Loading @@ -269,12 +269,18 @@ class OdtConverter { // Paragraph case 'text:p': //Just convert odf <text:p> to html <p> if ($xml->isEmptyElement) { // Self closed empty <text:p/> tag $this->html .= "\n<p> </p>"; } else { $tags = @$styles[$xml->getAttribute('text:style-name')]['tags']; if (!($tags && !in_array('blockquote', $tags))) { if (!(is_array($tags) && in_array('blockquote', $tags))) { // Do not print a <p> immediatly after or before a <blockquote> $opened_tags[] = 'p'; $this->html .= "\n<p>"; } } break; // Link Loading