Open GoogleCodeExporter opened 9 years ago
Sorry, I have a correction to make here. In my answer to the "What is the
expected
output? What do you see instead?" question, the following actual output has a
small
mistake:
"Actual: When you click the link generated by {toc}, you cannot go to the
"Test: this is a test." section of the page. The reason is that in the
title, there is a colon ":". In the generated .html page, the colon in the
link of the {toc} part is changed into something else (in my case, it's
"%252"). However, the colon in the title is changed into a different thing
(in my case, it's "%253")."
The correct actual output should be:
"Actual: When you click the link generated by {toc}, you cannot go to the
"Test: this is a test." section of the page. The reason is that in the
title, there is a colon ":". In the generated .html page, the colon in the
link of the {toc} part is changed into something else (in my case, it's
"%252"). However, the colon in the title is changed into a different thing
(in my case, it's "%2"). This causes that the title of the section doesn't
match the
link."
Original comment by ltang.el...@gmail.com
on 28 Sep 2009 at 8:26
[deleted comment]
I know why this happens. In the link, the colon gets translated to %3A by
confluence because of URL encoding and then the autoexport converts the % sign
to %25. The result of the colon is %253A, which is %3A instead of a colon. This
doesn't happen in the anchor, so there is a mismatch
For example:
The link -
<a href='#Testpage-Intro%253Ahello'>Intro:hello</a></li>
The anchor -
<h1><a name="Testpage-Intro%3Ahello"></a>Intro:hello</h1>
Original comment by ulk...@gmail.com
on 22 Mar 2011 at 8:58
Original issue reported on code.google.com by
ltang.el...@gmail.com
on 28 Sep 2009 at 7:43