[
https://issues.apache.org/jira/browse/JSPWIKI-898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623485#comment-14623485
]
brushed commented on JSPWIKI-898:
---------------------------------
Dave,
This is the standard JSPWiki behaviour.
See [https://jspwiki-wiki.apache.org/Wiki.jsp?page=TextFormattingRules]
_It's allowed to use almost any kind of characters inside a WikiName, as long
as they are letters or numbers_
In reality JSPWiki is a bit more forgiving, and allows also following
punctuation characters: ()&+, -=._$
All others (so also the en dash and apostrophe) are removed. When a non valid
character is removed, the next character is capitalized.
I guess the documentation pages should be updated to reflect this.
Try this:
{noformat}
[Pagenames allow letters including é £ €, etc., digits 0123456789 and
punctuation chars ()&+, -=._$ ]
{noformat}
(see also org.apache.wiki.parser.MarkupParser.cleanPageName() )
dirk
> Apostrophes and En dashes in page names are stripped out
> --------------------------------------------------------
>
> Key: JSPWIKI-898
> URL: https://issues.apache.org/jira/browse/JSPWIKI-898
> Project: JSPWiki
> Issue Type: Bug
> Components: Templates and UI
> Affects Versions: 2.10.2
> Environment: Client is:
> - Firefox 39 (Ubuntu 14.04).
> Server is:
> - JSPWiki v2.10.2-svn-24 running in GlassFish v4
> - Container managed authentication is enabled using a file-based realm
> - HTTPS is enabled
> - JSPWiki policy is locked down such that only authenticated users have
> access (both read and write)
> Reporter: Dave Koelmeyer
> Priority: Minor
> Attachments: JSPWiki-enDashAndApostrophes-1.png
>
>
> If a page is created which contains an apostrophe in its name, this is
> apparently blanked out when the page is saved.
> For example, I create a page which contains this text in its name:
> {noformat}
> [This is a long page title – let's see how it compares between the default
> template (Plain Vanilla) vs. Haddock template]
> {noformat}
> For some reason when saved this appears as:
> {noformat}
> This is a long page title letS see how it compares between the default
> template (Plain Vanilla) vs. Haddock template{noformat}
> The en dash and apostrophe gets removed, and the "s" has been capitalized.
> EDIT: this also applies to en dashes (Unicode character U+2013), and may well
> apply to other characters.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)