Mercurial > moin > 1.9
changeset 46:c4ef47b0eb38
don't put \n into pre sections when setting line-XXX anchors
imported from: moin--main--1.5--patch-47
author | Thomas Waldmann <tw@waldmann-edv.de> |
---|---|
date | Mon, 26 Sep 2005 20:31:05 +0000 |
parents | c24c7ee39c36 |
children | c4ebf23213a8 |
files | MoinMoin/formatter/text_html.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py Mon Sep 26 20:26:02 2005 +0000 +++ b/MoinMoin/formatter/text_html.py Mon Sep 26 20:31:05 2005 +0000 @@ -284,7 +284,7 @@ return str def anchordef(self, id): - return '<a id="%s"></a>\n' % (id, ) + return '<a id="%s"></a>' % (id, ) # do not add a \n here, it breaks pre sections with line_anchordef def line_anchordef(self, lineno): return self.anchordef("line-%d" % lineno)