XWiki Core

Header ids are always the same ("H") with Chinese or any other language without any ASCII character.

Details

  • Tests:
    Unit
  • Difficulty:
    Unknown
  • Description:
    Hide

    That's because to generate the id we "clean" the header using

    text.replaceAll("[^a-zA-Z0-9]", "")
    which remove every non alphanumeric ASCII characters.

    We need to convert non "valid" characters in some equivalent supported by XHTML specs instead of just remove them.

    Show
    That's because to generate the id we "clean" the header using
    text.replaceAll("[^a-zA-Z0-9]", "")
    which remove every non alphanumeric ASCII characters. We need to convert non "valid" characters in some equivalent supported by XHTML specs instead of just remove them.

Issue Links

Activity

Hide
Thomas Mortagne added a comment - 06/Mar/10 16:39

To properly support it in xwiki/1.0 and xwiki/2.0 syntax we should fix org.xwiki.rendering.util.IdGenerator and use it in xwiki/1.0 rendering.

Show
Thomas Mortagne added a comment - 06/Mar/10 16:39 To properly support it in xwiki/1.0 and xwiki/2.0 syntax we should fix org.xwiki.rendering.util.IdGenerator and use it in xwiki/1.0 rendering.
Hide
CalebJamesDeLisle added a comment - 24/Mar/10 12:34

r27845 changed a breaking test.

Show
CalebJamesDeLisle added a comment - 24/Mar/10 12:34 r27845 changed a breaking test.

People

Dates

  • Created:
    06/Mar/10 16:29
    Updated:
    24/Mar/10 12:34
    Resolved:
    23/Mar/10 14:26
    Date of First Response:
    24/Mar/10 12:34