Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-61941

Code Block macro not showing its content if it has only two chars

XMLWordPrintable

      Steps to Reproduce

      1. Open the page editor
      2. Insert Code Block macro
      3. Enter only two characters
      4. Publish

      Expected Results

      The characters in the macro are shown

      Actual Results

      The macro seems empty. Here is a sample with code block macros containing one, two, three char(s).

      Notes

      Storage format is like the followings, doesn't seem to strange.

      <p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="d556fd1f-b732-4e7b-aa69-52115ddeddb3"><ac:plain-text-body><![CDATA[a]]></ac:plain-text-body></ac:structured-macro>
      <p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="5e6a4a73-b3e8-44b4-bdd9-6ecc7f1b511c"><ac:plain-text-body><![CDATA[ab]]></ac:plain-text-body></ac:structured-macro>
      <p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="185accb0-dbcd-4959-b1c5-1531fe9cb1b6"><ac:plain-text-body><![CDATA[abc]]></ac:plain-text-body></ac:structured-macro>
      

      Workaround

      If possible, use preformatted text with panel macro(if needed)

              Unassigned Unassigned
              ahirama Ai Hirama
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: