diff MoinMoin/formatter/text_html.py @ 224:88304513aa73

use span for anchordef imported from: moin--main--1.5--patch-227
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 19 Nov 2005 20:26:19 +0000
parents 11740ebb136c
children 85458b71e188
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Sat Nov 19 19:30:20 2005 +0000
+++ b/MoinMoin/formatter/text_html.py	Sat Nov 19 20:26:19 2005 +0000
@@ -282,7 +282,9 @@
         return str
 
     def anchordef(self, id):
-        return '<a id="%s"></a>' % (id, ) # do not add a \n here, it breaks pre sections with line_anchordef
+        #return '<a id="%s"></a>' % (id, ) # this breaks PRE sections for IE
+        # do not add a \n here, it breaks pre sections with line_anchordef
+        return '<span id="%s" class="anchor"></span>' % (id, )
 
     def line_anchordef(self, lineno):
         return self.anchordef("line-%d" % lineno)