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

{% spaceless %} for ezpage_field in content_fields.html.twig causes issues with ezxml output

    Details

      Description

      If we are trying to output an ezxml field from an object within an ezpage block template override and the ezxml content is something like:

      <emphasize>second</emphasize> <strong>paragraph</strong>
      

      And then we define a template like this:

              block_view:
                      BannerCarouselBlock:
                          controller: "MarigoldBaseBundle:EzFlowBlocks:bannerCarousel"
                          template: "@ezdesign/blocks/banner_carousel.html.twig"
                          match:
                              Type: banner_carousel
      

      And try to output the ezxml content, the

      {% spaceless %}

      twig operator in content_fields.html.twig will make the output become secondparagraph instead of second paragraph.

      It is necessary to remove that operator and the developer should specify it by himself.

        Activity

        Hide
        Thiago Campos Viana added a comment - - edited

        Deprecated

        Show
        Thiago Campos Viana added a comment - - edited Deprecated
        Show
        Thiago Campos Viana added a comment - New PR https://github.com/ezsystems/ezpublish-kernel/pull/2514

          People

          • Assignee:
            Unassigned
            Reporter:
            Thiago Campos Viana
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: