# HG changeset patch # User Josef "Jeff" Sipek # Date 2005-08-18 02:59:02 # Node ID 5d5ab159d19734b5154d178d5b65b828023cc0b6 # Parent bdd7c53fca000ad482cfce57ab563ab8c2b1dd6a hgweb: Changed file page to list format syntax diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -431,9 +431,9 @@ class hgweb: def lines(): for l, t in enumerate(text.splitlines(1)): - yield self.t("fileline", line = t, - linenumber = "% 6d" % (l + 1), - parity = l & 1) + yield {"line": t, + "linenumber": "% 6d" % (l + 1), + "parity": l & 1} yield self.t("filerevision", file = f, filenode = node, diff --git a/templates/filerevision.tmpl b/templates/filerevision.tmpl --- a/templates/filerevision.tmpl +++ b/templates/filerevision.tmpl @@ -35,7 +35,7 @@
-#text#
+#text%fileline#
 
#footer#