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

Code with tabs will make text to overlap while editing the code snippet macro

    XMLWordPrintable

    Details

      Description

      Issue Summary

      Having a code that contains tabs in the code snippet (formerly known as code block) macro, will make the text to overlap when editing the macro.

      Steps to Reproduce

      1. Add a code snippet to a page;
      2. Add the following code and publish the page
        -- XXXX XXXXXXXXXXXXX XXXXXXXXX XXXXXX XX XXXX XXX
        XXXXXX
        	X.XX, X.XXXXXXX, X.XXXXXXX, X.XXXX, X.XXXXXXXXXXXXXX, XX.XXXXXXXXX, XX.XXXXXXXXXX, XX.XXXXX, XX.XXXXXX, XX.XXXXXXXX, X.XXXXXXXXXXXXXXXXXX, X.XXXXXXXXXXXXXX, X.XXXXXXXXXX, X.XXXXXXXXXXXXXX, 
        	X.*,
        	XX.*,
        	XXX.*,
        	XX.*
        XXXX [XXXXXXXXXXXXXX_XXX].[XXX].[XXXX] X
            XXXXX XXXX [XXXXXXXXXXXXXX_XXX].[XXX].[XXXXXXXX] XX XX XX.XX = X.XX XXX XX.XXXXXXX = X.XXXXXXX XXX XX.XXXXXXX = X.XXXXXXX
        	XXXXX XXXX [XXXXXXXXXXXXXX_XXX].[XXX].[XXXXXXXXX] XXX XX XXX.XX = X.XX XXX XXX.XXXXXXX = X.XXXXXXX XXX XXX.XXXXXXX = X.XXXXXXX
        	XXXXX XXXX [XXXXXXXXXXXXXX_XXX].[XXX].[XXXXX] XX XX XX.XXXXXX = X.XX XXX XX.XXXXXXX = X.XXXXXXX
        XXXXX X.XXXXXXX XX ('XXXX')
        XXX X.XXXXXX = 0
        XXX X.XXXXXXX = 'XXX'
        XXX X.XXXXXXXXXXXXXX XXX XX ('X00','X00','X00','X00','X00')										--XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXX XXXXX XXXXXXXX XXXX XXXXXXX
        XXX X.XX XXXX ('XXX%'
        XXX X.XXXXXXXXXXXXXXXXXX = 0
        XXX (XX.XXXXXX = 0
        XX XX.XXXXXXXX > 0)
        XXX XX.XXXXXXXXXX < '00' XXX XX.XXXXXXXXXX > '0'
        XXX XX.XXXXXXXXX < 000
        XXX XX.XXXXXXXXX XX ('XXXXX0000')
        XXXXX XX XX.XXXXXXXXX XXXX, XX.XXXXXXXXXX XXXX;
      3. Edit the page again and type inside of the macro

      Expected Results

      The code should be rendered normally

      Actual Results

      Some parts of the code will be rendered in front of other parts:
      CONFCLOUD-72084.mp4

      Workaround

      Using spaces instead of tabs won't cause this issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gtworkowski Guilherme T
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: