ProcessorBazaar: blockquote-0.1.1.py
| File blockquote-0.1.1.py, 426 bytes (added by mrenzmann@…, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | """ |
| 2 | Processor that encloses the processed text in blockquote tags |
| 3 | |
| 4 | Version: 0.1.1 (2005-11-08) |
| 5 | |
| 6 | History: |
| 7 | v0.1.1 WikiFormatting in blockquoted text now properly handled |
| 8 | v0.1.0 First public release |
| 9 | |
| 10 | Yes, smile about it, it's my first experience in Python hacking :-) |
| 11 | """ |
| 12 | |
| 13 | from trac.wiki import wiki_to_html |
| 14 | |
| 15 | def execute(hdf, text, env): |
| 16 | return '<blockquote>%s</blockquote>' % wiki_to_html(text, env, hdf, env.get_db_cnx()) |
