Commit 5acdd2df authored by Mikhail Khasaya's avatar Mikhail Khasaya
Browse files

Issue #3301479 by dillix

parent 7772da34
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -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>&nbsp;</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