diff 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
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Sun Sep 25 14:45:38 2005 +0000
+++ b/MoinMoin/formatter/text_html.py	Sun Sep 25 17:47:45 2005 +0000
@@ -286,12 +286,18 @@
     def anchordef(self, id):
         return '<a id="%s"></a>\n' % (id, )
 
-    def anchorlink(self, on, name='', id = None):
+    def line_anchordef(self, lineno):
+        return self.anchordef("line-%d" % lineno)
+
+    def anchorlink(self, on, name='', id=None):
         extra = ''
         if id:
             extra = ' id="%s"' % id
         return ['<a href="#%s"%s>' % (name, extra), '</a>'][not on]
 
+    def line_anchorlink(self, on, lineno=0):
+        return self.anchorlink(on, name="line-%d" % lineno)
+
     # Attachments ######################################################
 
     def attachment_link(self, url, text, **kw):