NeilStevens: Since the footnote discussion some of us are putting anchors all over the place now, and it has exposed a bug in the output code of MoinMoin. Apparently the anchors are being left un-closed or something, which is turning lots of text red with the default stylesheet.

I'm still occupied with grave personal matters and can't devote the concentration to fixing this at the moment, so help is welcome.

SoulWynd: Can you show me an example? I just checked the anchor in the formatter code in MoinMOin 1.2.3 and it seems okay to me.

NeilStevens: Go to WikiSandBox and move the mouse over the top lines there. They turn red here because the anchor  <a id="topofsandbox">  never seems to get closed.

SoulWynd: That's quite strange. From what I have noticed, that's handled by formatter/text_html.py

Check if  def anchordef  is exactly like this in the file I mentioned:

    def anchordef(self, id):
        return '<a id="%s"></a>' % id

If not, there's your bug.

NeilStevens: It was

    def anchordef(self, id):
        return '<a id="%s">' % id

Good find!

Wiki Suggestions/Fix generated anchor HTML (last edited 2004-08-02 07:06:36 by NeilStevens)