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

  1. Add an anchor with the macro such as Anchor(10-30-2008)

  2. Link to the anchor #10-30-2008

  3. Modify the anchor and prepend a character such as #A10-30-2008 and it works.

Example

#10-30-2008

the anchor is below here:

Component selection

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

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


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/AnchorMacroWithNumbers (last edited 2009-02-08 03:39:26 by ThomasWaldmann)