# HG changeset patch # User Anton Shestakov # Date 1442227269 -28800 # Node ID d53212d70893db6d9e96706f97d152b47b5f5daa # Parent 399e970e35c8853a864442f6a93709ea91bb1635 hgweb: replace .sourcelast with .bottomline that does the same In paper and Coal, basically, div.sourcelast was only used to make a 1px border on the bottom of file source view (and only there). It's better to use bottomline class, that also exists for the same purpose (visually), but is used more widely and works without needing an empty
. diff -r 399e970e35c8 -r d53212d70893 mercurial/templates/paper/filerevision.tmpl --- a/mercurial/templates/paper/filerevision.tmpl Sun Sep 13 21:01:34 2015 +0800 +++ b/mercurial/templates/paper/filerevision.tmpl Mon Sep 14 18:41:09 2015 +0800 @@ -71,8 +71,7 @@
line wrap: on
line source
-
{text%fileline}
-
+
{text%fileline}
diff -r 399e970e35c8 -r d53212d70893 mercurial/templates/static/style-coal.css --- a/mercurial/templates/static/style-coal.css Sun Sep 13 21:01:34 2015 +0800 +++ b/mercurial/templates/static/style-coal.css Mon Sep 14 18:41:09 2015 +0800 @@ -208,14 +208,13 @@ .bigtable td.annotate { font-size: smaller; } .bigtable td.source { font-size: inherit; } -.source, .sourcefirst, .sourcelast { +.source, .sourcefirst { font-family: monospace; white-space: pre; padding: 1px 4px; font-size: 90%; } .sourcefirst { border-bottom: 1px solid #999; font-weight: bold; } -.sourcelast { border-top: 1px solid #999; } .source a { color: #999; font-size: smaller; font-family: monospace;} .bottomline { border-bottom: 1px solid #999; } diff -r 399e970e35c8 -r d53212d70893 mercurial/templates/static/style-paper.css --- a/mercurial/templates/static/style-paper.css Sun Sep 13 21:01:34 2015 +0800 +++ b/mercurial/templates/static/style-paper.css Mon Sep 14 18:41:09 2015 +0800 @@ -209,14 +209,13 @@ .bigtable td.annotate { font-size: smaller; } .bigtable td.source { font-size: inherit; } -.source, .sourcefirst, .sourcelast { +.source, .sourcefirst { font-family: monospace; white-space: pre; padding: 1px 4px; font-size: 90%; } .sourcefirst { border-bottom: 1px solid #999; font-weight: bold; } -.sourcelast { border-top: 1px solid #999; } .source a { color: #999; font-size: smaller; font-family: monospace;} .bottomline { border-bottom: 1px solid #999; } diff -r 399e970e35c8 -r d53212d70893 tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Sun Sep 13 21:01:34 2015 +0800 +++ b/tests/test-hgweb-commands.t Mon Sep 14 18:41:09 2015 +0800 @@ -1335,9 +1335,8 @@
line wrap: on
line source
-
+  
   foo
-
@@ -1462,9 +1461,8 @@
line wrap: on
line source
-
+  
   another
-
diff -r 399e970e35c8 -r d53212d70893 tests/test-highlight.t --- a/tests/test-highlight.t Sun Sep 13 21:01:34 2015 +0800 +++ b/tests/test-highlight.t Mon Sep 14 18:41:09 2015 +0800 @@ -142,7 +142,7 @@
line wrap: on
line source
-
+  
   #!/usr/bin/env python
   
   """Fun with generators. Corresponding Haskell implementation:
@@ -176,7 +176,6 @@
       p = primes()
       print "The first %d primes: %s" % (n, list(islice(p, n)))
   
-