diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py
--- 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,
diff --git a/templates/changelogentry-rss.tmpl b/templates/changelogentry-rss.tmpl
--- a/templates/changelogentry-rss.tmpl
+++ b/templates/changelogentry-rss.tmpl
@@ -1,7 +1,7 @@
#date|age# ago: | -#desc|firstline|escape# | +#desc|strip|firstline|escape# | |||||||
---|---|---|---|---|---|---|---|---|---|
changeset #rev#: | diff --git a/templates/changeset.tmpl b/templates/changeset.tmpl --- a/templates/changeset.tmpl +++ b/templates/changeset.tmpl @@ -11,7 +11,7 @@ #archives%archiveentry# -
#files# | ||
description: | -#desc|escape|addbreaks# | +#desc|strip|escape|addbreaks# |
---|
#date|age# ago: | -#desc|firstline|escape# | #desc|strip|firstline|escape# |
revision #filerev#: | #filenode|short# |