-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 4.0, 4.0.3
-
Component/s: Editor - Page / Comment Editor
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
- 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)
- In one of the lines of the code, enter '//'
- 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 '>'