templates: remove unnecessary <span>
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 06 Jan 2015 15:21:48 -0800
changeset 23743 606a3bf82e30
parent 23742 3a4d8a6ce432
child 23744 d1933c2e3c8c
templates: remove unnecessary <span> The <span> on diffline was useless. It was only making browsers work harder. Remove it.
mercurial/templates/gitweb/map
mercurial/templates/monoblue/map
--- a/mercurial/templates/gitweb/map	Tue Jan 06 23:46:18 2015 +0900
+++ b/mercurial/templates/gitweb/map	Tue Jan 06 15:21:48 2015 -0800
@@ -108,7 +108,7 @@
 difflineplus = '<span style="color:#008800;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
 difflineminus = '<span style="color:#cc0000;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
 difflineat = '<span style="color:#990099;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
-diffline = '<span><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
+diffline = '<a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}'
 
 comparisonblock ='
   <tbody class="block">
--- a/mercurial/templates/monoblue/map	Tue Jan 06 23:46:18 2015 +0900
+++ b/mercurial/templates/monoblue/map	Tue Jan 06 15:21:48 2015 -0800
@@ -103,7 +103,7 @@
 difflineplus = '<span style="color:#008800;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
 difflineminus = '<span style="color:#cc0000;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
 difflineat = '<span style="color:#990099;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
-diffline = '<span><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
+diffline = '<a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}'
 
 comparisonblock ='
   <tbody class="block">