[wiki] on arrete de balancer du HTML
Ces macros sont appel'ees par getpagelinks. Si elles balancent n'importe quoi lorsqu'on cherche a obtenir leurs liens, CategoriePagePublique n'apparait pas... darcs-hash:20090427142002-bd074-46977e63783af21b013023b46ee7e289020f28a7.gz
This commit is contained in:
parent
d91a411300
commit
6b0022645d
8 changed files with 25 additions and 23 deletions
|
@ -9,7 +9,6 @@
|
|||
|
||||
def execute(macro, text):
|
||||
import md5
|
||||
|
||||
parseargs = text.split(',')
|
||||
if len(parseargs)<2:
|
||||
return '<small><strong class="error">MailTo macro must have at least two arguments</strong></small>'
|
||||
|
@ -19,4 +18,4 @@ def execute(macro, text):
|
|||
user_id = md5.md5( email.strip() ).hexdigest()
|
||||
url = 'http://www.gravatar.com/avatar.php?gravatar_id=%s&size=80' % user_id
|
||||
html = "<img src=\"%s\" alt=\"Gravatar\" />" % url
|
||||
return html
|
||||
return macro.formatter.rawHTML(html)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue