incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Chow (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-228) Headings with identical titles do not have different section IDs
Date Sat, 05 Apr 2008 18:55:25 GMT


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:
>             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.

View raw message