Edgewall Software

MacroBazaar: acronym.py

File acronym.py, 179 bytes (added by Caged, 7 years ago)

Add support for the HTML acronym tag.

Line 
1def execute(hdf, txt, env):
2    args = txt.split(',', 1)
3    title = args[1]
4    linktext = args[0].strip()
5    return '<acronym title="%s">%s</acronym>' % (title, linktext)