Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-26684

noprint macros error with empty body

    XMLWordPrintable

Details

    • Bug
    • Resolution: Timed out
    • Medium
    • None
    • 4.3.1
    • None

    Description

      In some of my pages I use customware reporting macroses inside noprint macros (to exclude some content from pdf export). Everything is ok, if reporting macros returns any data, if no - noprint works incorrect - it hides rest of page in pdf export.

      The simples way to reproduce(without customware macroses):

      1. Create blank user macros:
        1. Macro name: blank
        2. Macro Title: blank
        3. Macro Body Processing: no macro body
        4. Template:
          ## @noparams
      2. Create test page:
        <ac:macro ac:name="noprint">
          <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
          <ac:rich-text-body>
            <ac:macro ac:name="panel">
              <ac:rich-text-body>
                <ac:macro ac:name="blank"/>
              </ac:rich-text-body>
            </ac:macro>
          </ac:rich-text-body>
        </ac:macro>
        <h3>Hello world</h3>
        
      3. Save page
      4. Export to pdf

      Result

      1. No "Hello world" text in pdf

      P.S.

      • Instead of panel you can use also expan - result will be the same
      • The simplest solution is just to put
        <p> </p>

        after

        <ac:macro ac:name="blank"/>

        or inside blank macros. But this is not good )

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              c74b4ce7d3c7 NikitaM
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: