# HG changeset patch # User Anton Shestakov # Date 1423139670 -28800 # Node ID bf661a03fddcaa9d50ca545241e903f1f3b6b0a9 # Parent 9756f943634f08e0b6a242d8324c5c68b76f080a hgweb: use css margin instead of empty

before diffstat table The

elements were used to create an empty space between the diffstat link and the diffstat table, but they don't have any semantic meaning, so it is better to use css instead. Default margins for

elements can differ depending on the browser, but usually the margin is 1em (exceptions are IE 6 and 7 with 14pt, which is comparable). The css rule sets top margin to 1em. This change is a "better version" of 70cfa7e1611b, where

elements were simply properly closed. diff -r 9756f943634f -r bf661a03fddc mercurial/templates/paper/changeset.tmpl --- a/mercurial/templates/paper/changeset.tmpl Thu Feb 05 19:24:35 2015 +0800 +++ b/mercurial/templates/paper/changeset.tmpl Thu Feb 05 20:34:30 2015 +0800 @@ -68,8 +68,7 @@ [+]

diff -r 9756f943634f -r bf661a03fddc mercurial/templates/static/style-paper.css --- a/mercurial/templates/static/style-paper.css Thu Feb 05 19:24:35 2015 +0800 +++ b/mercurial/templates/static/style-paper.css Thu Feb 05 20:34:30 2015 +0800 @@ -108,6 +108,9 @@ .minusline { color: #dc143c; } /* crimson */ .atline { color: purple; } +.diffstat-table { + margin-top: 1em; +} .diffstat-file { white-space: nowrap; font-size: 90%; diff -r 9756f943634f -r bf661a03fddc tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Thu Feb 05 19:24:35 2015 +0800 +++ b/tests/test-hgweb-commands.t Thu Feb 05 20:34:30 2015 +0800 @@ -893,8 +893,7 @@ [+]