diff --git a/templates/spartan/map b/templates/spartan/map
--- a/templates/spartan/map
+++ b/templates/spartan/map
@@ -42,8 +42,12 @@ filerevision = filerevision.tmpl
fileannotate = fileannotate.tmpl
filediff = filediff.tmpl
filelog = filelog.tmpl
-fileline = '
'
+fileline = ''
filelogentry = filelogentry.tmpl
+
+# The ensures that all table cells have content (even if there
+# is an empty line in the annotated file), which in turn ensures that
+# all table rows have equal height.
annotateline = '
@@ -53,7 +57,7 @@ annotateline = '
|
{linenumber}
|
- {line|escape} |
+ {line|escape} |
'
difflineplus = '{linenumber}{line|escape}'
difflineminus = '{linenumber}{line|escape}'
diff --git a/templates/static/style.css b/templates/static/style.css
--- a/templates/static/style.css
+++ b/templates/static/style.css
@@ -5,7 +5,7 @@ a { text-decoration:none; }
.parity0 { background-color: #ddd; }
.parity1 { background-color: #eee; }
.lineno { width: 60px; color: #aaa; font-size: smaller;
- text-align: right; padding-right:1em; }
+ text-align: right; }
.plusline { color: green; }
.minusline { color: red; }
.atline { color: purple; }
diff --git a/tests/test-hgweb-commands.out b/tests/test-hgweb-commands.out
--- a/tests/test-hgweb-commands.out
+++ b/tests/test-hgweb-commands.out
@@ -887,7 +887,7 @@ a { text-decoration:none; }
.parity0 { background-color: #ddd; }
.parity1 { background-color: #eee; }
.lineno { width: 60px; color: #aaa; font-size: smaller;
- text-align: right; padding-right:1em; }
+ text-align: right; }
.plusline { color: green; }
.minusline { color: red; }
.atline { color: purple; }