diff 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
line wrap: on
line diff
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -164,6 +164,8 @@ class templater:
 
 common_filters = {
     "escape": cgi.escape,
+    "strip": lambda x: x.strip(),
+    "rstrip": lambda x: x.rstrip(),
     "age": age,
     "date": lambda x: util.datestr(x),
     "addbreaks": nl2br,