comparison MoinMoin/formatter/text_html.py @ 36:eb3b18ffb28b

fixed some english strings, better converter debugging msgs, move lineno anchors to formatter imported from: moin--main--1.5--patch-37
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 25 Sep 2005 17:47:45 +0000
parents 3ffdb52c6969
children c4ef47b0eb38
comparison
equal deleted inserted replaced
35:f0af060fb82b 36:eb3b18ffb28b
284 return str 284 return str
285 285
286 def anchordef(self, id): 286 def anchordef(self, id):
287 return '<a id="%s"></a>\n' % (id, ) 287 return '<a id="%s"></a>\n' % (id, )
288 288
289 def anchorlink(self, on, name='', id = None): 289 def line_anchordef(self, lineno):
290 return self.anchordef("line-%d" % lineno)
291
292 def anchorlink(self, on, name='', id=None):
290 extra = '' 293 extra = ''
291 if id: 294 if id:
292 extra = ' id="%s"' % id 295 extra = ' id="%s"' % id
293 return ['<a href="#%s"%s>' % (name, extra), '</a>'][not on] 296 return ['<a href="#%s"%s>' % (name, extra), '</a>'][not on]
297
298 def line_anchorlink(self, on, lineno=0):
299 return self.anchorlink(on, name="line-%d" % lineno)
294 300
295 # Attachments ###################################################### 301 # Attachments ######################################################
296 302
297 def attachment_link(self, url, text, **kw): 303 def attachment_link(self, url, text, **kw):
298 _ = self.request.getText 304 _ = self.request.getText