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

Regression in renderParagraph() after preserveWhiteSpace=false was removed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1, 4.3.0beta1
    • Component/s: Database related
    • Labels:
      None

      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

          Issue Links

            Activity

              People

              • Assignee:
                qwix Jérôme Renard
                Reporter:
                andre1 André R
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: