paper/coal: use fixed width for diffstat +/- link
The plus and minus characters are normally not the same width in a
non-monospace font, and this made the line length change when the
diffstat display was toggled.
The square brackets are not rendered in a monospace font to ensure
that they align with the parenthesis on the same line.
--- a/mercurial/templates/paper/changeset.tmpl Tue Jun 14 16:33:46 2011 +0200
+++ b/mercurial/templates/paper/changeset.tmpl Tue Jun 14 16:38:34 2011 +0200
@@ -66,9 +66,9 @@
<th class="diffstat">diffstat</th>
<td class="diffstat">
{diffsummary}
- <a id="diffstatexpand" href="javascript:showDiffstat()"/>[+]</a>
+ <a id="diffstatexpand" href="javascript:showDiffstat()"/>[<tt>+</tt>]</a>
<div id="diffstatdetails" style="display:none;">
- <a href="javascript:hideDiffstat()"/>[-]</a>
+ <a href="javascript:hideDiffstat()"/>[<tt>-</tt>]</a>
<p>
<table>{diffstat}</table>
</div>
--- a/tests/test-hgweb-commands.t Tue Jun 14 16:33:46 2011 +0200
+++ b/tests/test-hgweb-commands.t Tue Jun 14 16:38:34 2011 +0200
@@ -357,9 +357,9 @@
<td class="diffstat">
2 files changed, 2 insertions(+), 0 deletions(-)
- <a id="diffstatexpand" href="javascript:showDiffstat()"/>[+]</a>
+ <a id="diffstatexpand" href="javascript:showDiffstat()"/>[<tt>+</tt>]</a>
<div id="diffstatdetails" style="display:none;">
- <a href="javascript:hideDiffstat()"/>[-]</a>
+ <a href="javascript:hideDiffstat()"/>[<tt>-</tt>]</a>
<p>
<table> <tr class="parity0">
<td class="diffstat-file"><a href="#l1.1">da/foo</a></td>
--- a/tests/test-hgweb-diffs.t Tue Jun 14 16:33:46 2011 +0200
+++ b/tests/test-hgweb-diffs.t Tue Jun 14 16:38:34 2011 +0200
@@ -99,9 +99,9 @@
<td class="diffstat">
2 files changed, 2 insertions(+), 0 deletions(-)
- <a id="diffstatexpand" href="javascript:showDiffstat()"/>[+]</a>
+ <a id="diffstatexpand" href="javascript:showDiffstat()"/>[<tt>+</tt>]</a>
<div id="diffstatdetails" style="display:none;">
- <a href="javascript:hideDiffstat()"/>[-]</a>
+ <a href="javascript:hideDiffstat()"/>[<tt>-</tt>]</a>
<p>
<table> <tr class="parity0">
<td class="diffstat-file"><a href="#l1.1">a</a></td>
@@ -359,9 +359,9 @@
<td class="diffstat">
2 files changed, 2 insertions(+), 0 deletions(-)
- <a id="diffstatexpand" href="javascript:showDiffstat()"/>[+]</a>
+ <a id="diffstatexpand" href="javascript:showDiffstat()"/>[<tt>+</tt>]</a>
<div id="diffstatdetails" style="display:none;">
- <a href="javascript:hideDiffstat()"/>[-]</a>
+ <a href="javascript:hideDiffstat()"/>[<tt>-</tt>]</a>
<p>
<table> <tr class="parity0">
<td class="diffstat-file"><a href="#l1.1">a</a></td>
--- a/tests/test-hgweb-removed.t Tue Jun 14 16:33:46 2011 +0200
+++ b/tests/test-hgweb-removed.t Tue Jun 14 16:38:34 2011 +0200
@@ -94,9 +94,9 @@
<td class="diffstat">
1 files changed, 0 insertions(+), 1 deletions(-)
- <a id="diffstatexpand" href="javascript:showDiffstat()"/>[+]</a>
+ <a id="diffstatexpand" href="javascript:showDiffstat()"/>[<tt>+</tt>]</a>
<div id="diffstatdetails" style="display:none;">
- <a href="javascript:hideDiffstat()"/>[-]</a>
+ <a href="javascript:hideDiffstat()"/>[<tt>-</tt>]</a>
<p>
<table> <tr class="parity0">
<td class="diffstat-file"><a href="#l1.1">a</a></td>