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

Underscores hidden by browser rendering bug in {code} and {noformat} macro

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Low Low
    • None
    • 2.3
    • None
    • Firefox

      Underlines in the last line of a {code} or {noformat} macro can sometimes not be seen due to the styles applied to these macros.

      See comments below for a suggested fix.

            [CONFSERVER-7588] Underscores hidden by browser rendering bug in {code} and {noformat} macro

            I cannot reproduce this on Confluence 5.8 and I suspect it was resolved around Confluence 4.0, when the new editor came in.

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - I cannot reproduce this on Confluence 5.8 and I suspect it was resolved around Confluence 4.0, when the new editor came in.

            Is it true that this is still not resolved after 4 years? For those that add actual code this vould be extremely problematic in that this could cause code breakage if the user tried to implement.

            Ken Stafford added a comment - Is it true that this is still not resolved after 4 years? For those that add actual code this vould be extremely problematic in that this could cause code breakage if the user tried to implement.

            C'mon .. 2½ years to fix a line of CSS. Who is going to give me the 15 minutes of my life back, that I spend figuring out what was going on?

            Troels Knak-Nielsen added a comment - C'mon .. 2½ years to fix a line of CSS. Who is going to give me the 15 minutes of my life back, that I spend figuring out what was going on?

            Garnet suggest this patch in the following CSP: https://support.atlassian.com/browse/CSP-7236.

            Change the CSS to be:

            .code

            { border: 1px dashed #3c78b5; font-size: 11px; font-family: Courier; margin: 10px; line-height: normal; overflow: auto; }

            line-height has to be set to normal explicitly for the font to display underscores correctly.

            Samuel Le Berrigaud added a comment - Garnet suggest this patch in the following CSP: https://support.atlassian.com/browse/CSP-7236 . Change the CSS to be: .code { border: 1px dashed #3c78b5; font-size: 11px; font-family: Courier; margin: 10px; line-height: normal; overflow: auto; } line-height has to be set to normal explicitly for the font to display underscores correctly.

            Adding a 1px padding to the pre element would fix this (and does on our install of 2.3.1)

            Digital M&C added a comment - Adding a 1px padding to the pre element would fix this (and does on our install of 2.3.1)

            Actually I found the problem initially in IE 7, so the bug is not just Firefox. See the attached screenshot.

            Deleted Account (Inactive) added a comment - Actually I found the problem initially in IE 7, so the bug is not just Firefox. See the attached screenshot.

            Don Willis added a comment -

            Screenshots

            Don Willis added a comment - Screenshots

            Don Willis added a comment -

            This is not quite accurate. The characters are there, try copying and pasting, they're just hidden by a weird padding issue from the box they occupy. It also only happens in Firefox.

            Don Willis added a comment - This is not quite accurate. The characters are there, try copying and pasting, they're just hidden by a weird padding issue from the box they occupy. It also only happens in Firefox.

              Unassigned Unassigned
              ivan@atlassian.com Ivan Benko [Atlassian]
              Affected customers:
              14 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: