[ 
https://issues.apache.org/jira/browse/JSPWIKI-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586032#action_12586032
 ] 

Alexander Chow commented on JSPWIKI-228:
----------------------------------------

Hi Janne,

Correct me if I am wrong, but this code should be executed any time a change 
happens (e.g., renaming of headings or rearranging of paragraphs).  Hence, even 
if things change, the order of numbers should be the same.  The way MediaWiki 
handles it, it seems, is similar, though only appending a number when there are 
duplicates (which sounds to me like keeping track of headings in some kind of 
HashSet or something).

BTW, I initially tried to use a random number, but due to the fact that the 
TableOfContents plugin does its own parsing, its set of numbers can be 
different.  Is there another mechanism you think would work better?

> Headings with identical titles do not have different section IDs
> ----------------------------------------------------------------
>
>                 Key: JSPWIKI-228
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-228
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage, Plugins
>    Affects Versions: 2.6.2
>            Reporter: Alexander Chow
>         Attachments: JSPWIKI-228.patch
>
>
> When two or more headings in a given wiki article have the same title, their 
> section IDs will be identical.  The TableOfContents plugin will then not know 
> which section ID to go to and will most likely go to the first one found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to