comparison mercurial/hgweb.py @ 1445:56281e086f38

hgweb: add strip and rstrip filters to handle summary
author TK Soh <teekaysoh@yahoo.com>
date Tue, 25 Oct 2005 14:57:14 -0700
parents 68f81ba07b2a
children 7d66ce9895fa
comparison
equal deleted inserted replaced
1444:f84ed9c6131d 1445:56281e086f38
162 yield tmpl 162 yield tmpl
163 return 163 return
164 164
165 common_filters = { 165 common_filters = {
166 "escape": cgi.escape, 166 "escape": cgi.escape,
167 "strip": lambda x: x.strip(),
168 "rstrip": lambda x: x.rstrip(),
167 "age": age, 169 "age": age,
168 "date": lambda x: util.datestr(x), 170 "date": lambda x: util.datestr(x),
169 "addbreaks": nl2br, 171 "addbreaks": nl2br,
170 "obfuscate": obfuscate, 172 "obfuscate": obfuscate,
171 "short": (lambda x: x[:12]), 173 "short": (lambda x: x[:12]),