Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18687

The first heading is only partially excluded and transformed into content on Include/Display Macro when including a section

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 13.4, 12.10.8, 15.10.11
    • None
    • Windows 10 Pro 64 bit, IE11, using a local instance of XWiki 13.4 on MySQL 8, Tomcat 9.0.46
    • Unknown

    Description

      STEPS TO REPRODUCE

      1. Create a page (e.g. 'Pag1') with the following content:
        = This is Heading 1 =
        
        This is the original page content.
      2. Create another page (e.g. 'Pag2')
      3. Insert Include Macro 
      4. On Page parameter select 'Pag1'
      5. Tick the checkbox "Exclude First Heading"
      6. On Section parameter insert 'HThisisHeading1'

      or paste in source/wiki mode:

      {{include reference="Pag1.WebHome" excludeFirstHeading="true" section="HThisisHeading1"/}}
      1. Save the page

      EXPECTED RESULTS

      On 'Pag2', only the content from the section of 'Pag1' is displayed:

      This is the original page content.

      ACTUAL RESULTS

      The first heading is not entirely excluded, apparently being transformed into content: 

       is Heading 1
      This is the original page content.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iandriuta Ilie Andriuta
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: