Edgewall Software

ProcessorBazaar: blockquote-0.1.1.py

File blockquote-0.1.1.py, 426 bytes (added by mrenzmann@…, 3 years ago)

blockquote processor v0.1.1 - handles WikiFormatting in quoted text correctly

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