hgweb file: fixed left-justified line numbers on IE v6.0
authorTK Soh <teekaysoh@yahoo.com>
Fri, 23 Sep 2005 17:19:35 -0700
changeset 1336 8c094fb47b59
parent 1335 bea6356b8bca
child 1337 d4b25df77a9e
hgweb file: fixed left-justified line numbers on IE v6.0 IE (v6.0) seemed to squash the spaces surrounding the line numbers, making them appeared as left- instead of being right-justified. Testing with IE v6.0 and Firefox 1.0.6.
templates/header.tmpl
templates/map
--- a/templates/header.tmpl	Fri Sep 23 17:15:36 2005 -0700
+++ b/templates/header.tmpl	Fri Sep 23 17:19:35 2005 -0700
@@ -8,7 +8,8 @@
 a { text-decoration:none; }
 .parity0 { background-color: #dddddd; }
 .parity1 { background-color: #eeeeee; }
-.lineno { width: 60px; color: #aaaaaa; font-size: smaller; }
+.lineno { width: 60px; color: #aaaaaa; font-size: smaller; 
+          text-align: right; padding-right:1em; }
 .plusline { color: green; }
 .minusline { color: red; }
 .atline { color: purple; }
--- a/templates/map	Fri Sep 23 17:15:36 2005 -0700
+++ b/templates/map	Fri Sep 23 17:19:35 2005 -0700
@@ -17,7 +17,7 @@
 fileannotate = fileannotate.tmpl
 filediff = filediff.tmpl
 filelog = filelog.tmpl
-fileline = "<div class="parity#parity#"><span class="lineno">#linenumber# </span>#line|escape#</div>"
+fileline = "<div class="parity#parity#"><span class="lineno">#linenumber#</span>#line|escape#</div>"
 filelogentry = filelogentry.tmpl
 annotateline = "<tr class="parity#parity#"><td class="annotate"><a href="?cmd=changeset;node=#node#">#author|obfuscate#@#rev#</a></td><td><pre>#line|escape#</pre></td></tr>"
 difflineplus = "<span class="plusline">#line|escape#</span>"