noprint macros error with empty body

XMLWordPrintable

    • Type: Bug
    • Resolution: Timed out
    • Priority: Medium
    • None
    • Affects Version/s: 4.3.1
    • Component/s: None

      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 )

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

              Created:
              Updated:
              Resolved: