AppleScript syntax highlight in Code Block Macro display "nbsp" as it is

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.4.6, 7.7.2
    • Component/s: Macros - Other Macros
    • None
    • 2
    • Severity 3 - Minor

      Issue Summary

      AppleScript syntax highlight in Code Block Macro display nbsp as it is

      Steps to Reproduce

      1. Create a page and insert Code Block Macro into the page
      2. Edit the Code Block Macro and select AppleScript in the Syntax Highlighting drop-down list
      3. Paste the code below into the Code Block Macro:
        there are some non-breaking spaces below
                 
        in the line above
        
        
        
        there are some normal spaces below
                 
        in the line above
        
        
        
        there are some tabs below
        			
        in the line above
        
      4. Publish the page

      Expected Results

      The "nbsp"(non-breaking spaces) is presented as a non-visible space. just like "standard space" and "tabs".

      Actual Results

      The "nbsp" is displayed literally as   instead of non-visible space

      Note

      • This issue don't happen on other syntax highlighting options such as JavaScript, Python or HTML and XML
      • This issue don't happen in older version if Confluence (eg: Confluence 6.12.4)

      Workaround

      • Replace the nbsp with normal spaces or tabs
        OR
      • Choose a different syntax highlight language

        1. code block did not show nbsp.png
          code block did not show nbsp.png
          44 kB
        2. code block macro showing nbsp.png
          code block macro showing nbsp.png
          48 kB
        3. nbsp test.txt
          0.2 kB

            Assignee:
            Unassigned
            Reporter:
            Damien Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: