Uploaded image for project: 'Confluence'
  1. Confluence
  2. CONFLUENCE-452

Labels are lost during conversion for reference tags following a macro parameter with a reference tag in it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • 9.83.1
    • Syntax - XHTML
    • None
    • Unknown

    Description

      When a reference tag (<a>) is used in a macro parameter, setAccumulateContent(true) is called. This remains active for all the reference tags following this macro parameter and this eats labels for links specified using <a> tags appearing after this label.

      For instance, for a page containing:

      <a href="http://url">label1</a>
      <ac:structured-macro ac:name="somemacro"><ac:parameter name="url"><a href="http://perdu.com">Perdu</a></ac:parameter></ac:structured-macro>
      <a href="http://url">label2</a>
      

      label1 will be migrated, but label2 will be lost.

      This is a case where a global state exists without us noticing.

      Attachments

        Activity

          People

            rjakse Raphaël Jakse
            rjakse Raphaël Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: