Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15888

Regression in renderParagraph() after preserveWhiteSpace=false was removed

    XMLWordPrintable

Details

    Description

      http://issues.ez.no/IssueView.php?Id=15310&activeItem=4

      <?xml version="1.0" encoding="utf-8"?> <section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
       xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
       xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
      <paragraph><ul><li>
       <paragraph><link target="_blank" url_id="296">Accder la plate-forme boursre</link></paragraph>
       </li></ul></paragraph>
      </section>
      

      Earlier versions properly skipped paragraphs in li elements in renderParagraph():

          function renderParagraph( $element, $childrenOutput, $vars )
          {
              // don't render if inside 'li' or inside 'td' (by option)
              $parent = $element->parentNode;
      
              if ( ( $parent->nodeName == 'li' && $parent->childNodes->length == 1 ) ||
                   ( $parent->nodeName == 'td' && $parent->childNodes->length == 1 && !$this->RenderParagraphInTableCells ) )
              {
                  return $childrenOutput;
              }
      

      Attachments

        Activity

          People

            qwix qwix
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: