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

Newlines are being inserted before and after user macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 2.3
    • None

    Description

      am confounded by the way user macros are working. When I open a page containing a user macro in the editor, newlines are being inserted before and after the macro.

      To demonstrate the problem,

      1. I created a simple macro called test that consists of :

      <b>$body</b>

      2. I create wiki page usingmacro

      Some text

      {test}text in a macro{test}

      Some more text

      3. I save the page and view. Looks ok.

      4. I re-open in the rich text editor: A newline is now inserted between line 2 and 3. Wiki markup is unchanged. I save.

      5. A blank line is now between line 2 and 3.

      6. I re-open in the rich text edior: 2 blank lines between line 2 and 3. Wiki markup now appears as:

      Some text

      {test}text in a macro{test}


      Some more text

      I save again.

      7. Now there is no padding between line 2 and 3.

      8. Open for edit. Wiki Markup is

      Some text

      {test}text in a macro{test}


      Some more text

      Save.

      9. Now there is no padding between any lines.

      10. Open for edit. Wiki markup is now

      Some text

      {test}text in a macro{test}


      Some more text

      And so on.... Note that I am not actually editing any of the content, just opening in rich text editor>>then viewing the wiki markup>>and saving. The appearance is changing each time. Also, the line spacing in the rich text editor differs from that see in the preview or wiki page.

      This is quite annoying, because every time I make a change anywhere in the page, I have to make sure that the portion around the macro is properly spaced.

      Am I doing something wrong?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ivan@atlassian.com Ivan Benko [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: