Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-diffs.t @ 14608:4aef71839337
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.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 14 Jun 2011 16:38:34 +0200 |
parents | 17c0cb1045e5 |
children | fe9d36a6853e |
line wrap: on
line diff
--- 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>