mercurial/hgweb/webcommands.py
changeset 8236 9f53e203a09b
parent 8225 46293a0c7e9f
child 8352 eefcb59d44d6
--- a/mercurial/hgweb/webcommands.py	Mon Apr 20 12:10:04 2009 +0200
+++ b/mercurial/hgweb/webcommands.py	Tue Apr 28 17:28:00 2009 +0200
@@ -646,7 +646,7 @@
         node = short(ctx.node())
         age = templatefilters.age(ctx.date())
         desc = templatefilters.firstline(ctx.description())
-        desc = cgi.escape(desc)
+        desc = cgi.escape(templatefilters.nonempty(desc))
         user = cgi.escape(templatefilters.person(ctx.user()))
         branch = ctx.branch()
         branch = branch, web.repo.branchtags().get(branch) == ctx.node()