comparison 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
comparison
equal deleted inserted replaced
223:b14226034a35 224:88304513aa73
280 else: 280 else:
281 str = '</a>' 281 str = '</a>'
282 return str 282 return str
283 283
284 def anchordef(self, id): 284 def anchordef(self, id):
285 return '<a id="%s"></a>' % (id, ) # do not add a \n here, it breaks pre sections with line_anchordef 285 #return '<a id="%s"></a>' % (id, ) # this breaks PRE sections for IE
286 # do not add a \n here, it breaks pre sections with line_anchordef
287 return '<span id="%s" class="anchor"></span>' % (id, )
286 288
287 def line_anchordef(self, lineno): 289 def line_anchordef(self, lineno):
288 return self.anchordef("line-%d" % lineno) 290 return self.anchordef("line-%d" % lineno)
289 291
290 def anchorlink(self, on, name='', id=None): 292 def anchorlink(self, on, name='', id=None):