Anchor Macro Starting with a Number Doesn't Work
Using the anchor macro with an anchorname starting with a number does not work properly.
Steps to reproduce
Add an anchor with the macro such as Anchor(10-30-2008)
Link to the anchor #10-30-2008
Modify the anchor and prepend a character such as #A10-30-2008 and it works.
Example
the anchor is below here:
Component selection
- general
Details
MoinMoin Version |
1.7.1 |
OS and Version |
Windows Server 2003 R2 |
Python Version |
2.4 |
Server Setup |
Apache 2.2, mod_python |
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
<Browser Setting> (us-en) |
Workaround
Do not start an anchor with a numeric.
Discussion
Plan
- Priority:
- Assigned to:
- Status: no bug. IDs are specified that they must start with [A-Za-z]. Moin just makes sure that IDs are compliant. If it gets one that starts with something non-alpha, it prepends an "A".
Note: By http://hg.moinmo.in/moin/1.8/rev/050428d1c044 handling of anchor definition and linking to an anchor uses the same sanitizing code. Thus moin now fixes this problem internally without the user having to know this. If you had fixed it manually, you have to change your anchor links again (sorry).