Code Block displayed incorrectly if '//' is present

XMLWordPrintable

      Summary of Bug

      In Confluence 4.0 and above, if there are two slashes, or '//', in the code macro, then any code after the '//' will be rendered as comments and might not be rendered correctly.

      Steps to Reproduce

      1. In a page in Confluence 4.0 and above, enter a block of code (Either through entering Wiki Markup, or through the Code Block macro)
      2. In one of the lines of the code, enter '//'
      3. Preview or save the page

      Findings

      The example code is :

      This is the first example:link="http://Testing1"> another link="http://Testing2">
       
      This is the second example:link="http://mine.com" another link="http://yours.com">
       
      This is an example:link="http://google.com" another link= "http://yahoo.com">
      

      In Confluence 4.0 and above, anything after '//' is rendered as code and part of the code seems to be missing. In Confluence 4.0, this is the result :

      While in Confluence 3.5.11, this is the obtained result :

      Additional testing has shown that the rendering issue only shows itself when the following is present :

      • A 'http://' is entered after a '//'
      • The line of code is ended with a '>'

        1. code macro 1.png
          code macro 1.png
          8 kB
        2. code macro 2.png
          code macro 2.png
          9 kB

            Assignee:
            KaiA
            Reporter:
            Joe Wai Tye (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: