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

Display Inline / Display on new line not working correctly

      I am testing with Confluence 4.3.7 and have a strange behaviour.

      Testet e.g. the excerpt macro: When setting the "Display inline" property in the editor, the preview is ok, but after saving the page, the excerpt is rendered as block element.
      When choosing the "Display on new line" property, the editor renders it on a new line, but after saving, the excerpt seems to be rendered inline!

      I attach screenshots for the source fragment (preview, view)
      <p>The pre<ac:macro ac:name="excerpt">
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
      <p>An excerpt: inline or not?</p>
      </ac:rich-text-body>
      </ac:macro> the post</p>

        1. excerpt_preview.PNG
          excerpt_preview.PNG
          1 kB
        2. excerpt_view.PNG
          excerpt_view.PNG
          1 kB

            [CONFSERVER-29731] Display Inline / Display on new line not working correctly

            I am using v 5.9.5 and my Except does not properly work with 'inline' option with the preceding text.

            In my case, the Except is a date (Confluence style) which is preceded by text "Status Date:" and both are in a Table's cell. I have tried both Except inline and new line options to no evail. The Excerpt date always displays on the second line..

            As a work around (hack), I created a 2 column table within the table cell where I wish to display both text and date. The first column contains the text, and the second column contains the Except Confluence date with Inline set. This works, but the table's outline lines are visible and thus does not look good.

            Mark Heitner added a comment - I am using v 5.9.5 and my Except does not properly work with 'inline' option with the preceding text. In my case, the Except is a date (Confluence style) which is preceded by text "Status Date:" and both are in a Table's cell. I have tried both Except inline and new line options to no evail. The Excerpt date always displays on the second line.. As a work around (hack), I created a 2 column table within the table cell where I wish to display both text and date. The first column contains the text, and the second column contains the Except Confluence date with Inline set. This works, but the table's outline lines are visible and thus does not look good.

            hmm, I was able to reproduce the case using Firefox as well. 5.8 seem to be fixed, as far as I saw so far. Though, I will have to run a scripted update on those pages which hold this macro and have been edited using the buggy versions (e.g. 5.4), as the editor had added an extra </p> which I will remove when we upgrade to 5.8. I also noticed that there should be a space added to the page text to avoid two words to show up as one.
            Example:
            in Editor: some text {exerpt:INLINE}some more text{excerpt}
            in view mode: some textsome more text
            Resolution: add a space in front of "some" . (the space behind "text" does NOT help! It's not considered in View mode )
            I face I have to do this update to all pages which hold the excerpt macro with INLINE option.
            (Of course the modification of the page source is much more tricky than this high-level explanation, as we are talking about Confluence 5, not 3)

            Hans-Peter Geier added a comment - hmm, I was able to reproduce the case using Firefox as well. 5.8 seem to be fixed, as far as I saw so far. Though, I will have to run a scripted update on those pages which hold this macro and have been edited using the buggy versions (e.g. 5.4), as the editor had added an extra </p> which I will remove when we upgrade to 5.8. I also noticed that there should be a space added to the page text to avoid two words to show up as one. Example: in Editor: some text {exerpt:INLINE}some more text{excerpt} in view mode: some textsome more text Resolution: add a space in front of "some" . (the space behind "text" does NOT help! It's not considered in View mode ) I face I have to do this update to all pages which hold the excerpt macro with INLINE option. (Of course the modification of the page source is much more tricky than this high-level explanation, as we are talking about Confluence 5, not 3)

            One remark to the Tester: the bug description describes the problem as problem with IE8 and without problems for Firefox and Chrome. So the verification in Chrome and Firefox is not correct to prove the solution. This should be considered for testing similar issues.
            Nevertheless the problem is solved for the newer versions of Confluence and IE.

            Michael Ammann added a comment - One remark to the Tester: the bug description describes the problem as problem with IE8 and without problems for Firefox and Chrome. So the verification in Chrome and Firefox is not correct to prove the solution. This should be considered for testing similar issues. Nevertheless the problem is solved for the newer versions of Confluence and IE.

            Minh Tran added a comment -

            Dear hans-peter.geier / krzysztof.zelechowski / michael.ammann,

            Thanks for your information. Our developer verified the feature again with Confluence 5.8.4 on Chrome and Firefox
            Both cases inline and newline work as expected

            Thanks,
            Minh Tran
            Confluence BugMaster
            Atlassian

            Minh Tran added a comment - Dear hans-peter.geier / krzysztof.zelechowski / michael.ammann , Thanks for your information. Our developer verified the feature again with Confluence 5.8.4 on Chrome and Firefox Both cases inline and newline work as expected Thanks, Minh Tran Confluence BugMaster Atlassian

            I testet it with IE10 and Confluence 5.8.4. It seems to be inline now.

            Michael Ammann added a comment - I testet it with IE10 and Confluence 5.8.4. It seems to be inline now.

            I confirm that the inclusion is in-line in 5.7.4.

            Christopher Yeleighton added a comment - I confirm that the inclusion is in-line in 5.7.4.

            I am just validating this issue on Confluence 5.7.3.
            It appears that this issue does not exist in 5.7.3 anymore. Can someone validate whether this is true?

            Though I found out that a minor issue still remains. The editor removes any spaces in front of the macro, which may end up in concatenating two words into one.

            Example: this is the editor content:
            These are some words in front of {the excerpt macro}

            Result:
            These are some words in front ofthe excerpt macro
            (note the missing space between "of" and "the" )

            Any spaces after the word "of" and <ac:structured-macro ... are being removed by the editor, even when I do not change anything myself.
            It helps to include the space inside of the macro - but who would know this?

            Hans-Peter Geier added a comment - I am just validating this issue on Confluence 5.7.3. It appears that this issue does not exist in 5.7.3 anymore. Can someone validate whether this is true? Though I found out that a minor issue still remains. The editor removes any spaces in front of the macro, which may end up in concatenating two words into one. Example: this is the editor content: These are some words in front of {the excerpt macro} Result: These are some words in front ofthe excerpt macro (note the missing space between "of" and "the" ) Any spaces after the word "of" and <ac:structured-macro ... are being removed by the editor, even when I do not change anything myself. It helps to include the space inside of the macro - but who would know this?

            Hi Everyone

            Thank you for being patient with us on this issue. Unfortunately this is still on our backlog and there are no immediate plans to fix this issue. We have a number of other problems that we need to resolve before tackling this particular issue. As soon as we have any further updates I'll add the details to this ticket.

            Regards
            Steve Haffenden
            Confluence bugmaster

            Steve Haffenden (Inactive) added a comment - Hi Everyone Thank you for being patient with us on this issue. Unfortunately this is still on our backlog and there are no immediate plans to fix this issue. We have a number of other problems that we need to resolve before tackling this particular issue. As soon as we have any further updates I'll add the details to this ticket. Regards Steve Haffenden Confluence bugmaster

            Hans-Peter Geier added a comment - - edited

            Confluence 5.4.4 has same issue. I also wanna confirm that the issue also exists when using Firefox.

            Observation:
            When editing an existing page which has this macro and which WAS rendered fine (because the page was created in Confluence 3.5), the editor adds <\p> and <p> at the moment when the page is loaded into the editor, and so at this moment damages the page.
            In this way, existing correct pages are being damaged even if the author changes something else on the page (or even nothing)!

            Hans-Peter Geier added a comment - - edited Confluence 5.4.4 has same issue. I also wanna confirm that the issue also exists when using Firefox. Observation: When editing an existing page which has this macro and which WAS rendered fine (because the page was created in Confluence 3.5), the editor adds <\p> and <p> at the moment when the page is loaded into the editor, and so at this moment damages the page. In this way, existing correct pages are being damaged even if the author changes something else on the page (or even nothing)!

            Confluence 5.4.3 here, broken in Firefox too.

            Christopher Yeleighton added a comment - Confluence 5.4.3 here, broken in Firefox too.

              Unassigned Unassigned
              957164863928 Bernd Schaper
              Affected customers:
              3 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: