Edgewall Software
Home
Trac
Genshi
Babel
Bitten
Home
Download
Documentation
Mailing Lists
License
FAQ
Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
New Ticket
Search
Context Navigation
Back to MacroBazaar
MacroBazaar
: acronym.py
File acronym.py,
179 bytes
(added by Caged,
7 years ago
)
Add support for the HTML acronym tag.
Line
1
def
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
)
Download in other formats:
Original Format