APT local anchor / link doesn't work when there is a whitespace in the anchor 
name
----------------------------------------------------------------------------------

                 Key: DOXIA-257
                 URL: http://jira.codehaus.org/browse/DOXIA-257
             Project: Maven Doxia
          Issue Type: Bug
          Components: Module - Apt
    Affects Versions: 1.0-alpha-11
         Environment: Maven version: 2.0.9
Java version: 1.5.0_11
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
            Reporter: Olivier Berlanger


An local anchor and link defined in APT doesn't work if it contains white 
spaces.
The problem come in HTML generated from the APT using a Maven "site:site" goal.

Example APT:
-----------------------------------------------------------

* {Element group}

        An element group is a set of {{{Element}elements}}

* {Element}

       An element is a component of an {{Element group}}

-----------------------------------------------------------
in this example, the {Element} anchor will work, while the {Element group} will 
not.
The documentation of APT says "The name of an anchor/link is its text with all 
non alphanumeric characters stripped."
It's not the case in the generated HTML, the whitespace is there in the HTML 
causing the problem.

There are cases (as shown in the example) where it's difficult to find another 
name for the anchor.
Mainly because (unlike the link) you cannot specify an anchor name different 
from the anchor displayed text.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to