mercurial/hgweb.py
changeset 1445 56281e086f38
parent 1418 68f81ba07b2a
child 1473 7d66ce9895fa
--- 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,