spartan: add missing closing tags
Browsers apparently don't care about this, but let's fix it for humans.
--- a/mercurial/templates/spartan/map Fri Apr 20 15:21:03 2018 +0200
+++ b/mercurial/templates/spartan/map Thu May 31 16:52:02 2018 +0800
@@ -27,21 +27,24 @@
direntry = '
<tr class="parity{parity}">
- <td><tt>drwxr-xr-x</tt>
- <td>
- <td>
+ <td><tt>drwxr-xr-x</tt> </td>
+ <td> </td>
+ <td> </td>
<td>
<a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a>
<a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
{emptydirs|urlescape}
- </a>'
+ </a>
+ </td>
+ </tr>'
fileentry = '
<tr class="parity{parity}">
- <td><tt>{permissions|permissions}</tt>
- <td align=right><tt class="date">{date|isodate}</tt>
- <td align=right><tt>{size}</tt>
- <td><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>'
+ <td><tt>{permissions|permissions}</tt> </td>
+ <td align=right><tt class="date">{date|isodate}</tt> </td>
+ <td align=right><tt>{size}</tt> </td>
+ <td><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a></td>
+ </tr>'
filerevision = filerevision.tmpl
fileannotate = fileannotate.tmpl
--- a/tests/test-hgweb-descend-empties.t Fri Apr 20 15:21:03 2018 +0200
+++ b/tests/test-hgweb-descend-empties.t Thu May 31 16:52:02 2018 +0800
@@ -532,32 +532,38 @@
</tr>
<tr class="parity1">
- <td><tt>drwxr-xr-x</tt>
- <td>
- <td>
+ <td><tt>drwxr-xr-x</tt> </td>
+ <td> </td>
+ <td> </td>
<td>
<a href="/file/tip/a1?style=spartan">a1/</a>
<a href="/file/tip/a1/a2/a3/a4?style=spartan">
a2/a3/a4
</a>
+ </td>
+ </tr>
<tr class="parity0">
- <td><tt>drwxr-xr-x</tt>
- <td>
- <td>
+ <td><tt>drwxr-xr-x</tt> </td>
+ <td> </td>
+ <td> </td>
<td>
<a href="/file/tip/b1?style=spartan">b1/</a>
<a href="/file/tip/b1/b2/b3?style=spartan">
b2/b3
</a>
+ </td>
+ </tr>
<tr class="parity1">
- <td><tt>drwxr-xr-x</tt>
- <td>
- <td>
+ <td><tt>drwxr-xr-x</tt> </td>
+ <td> </td>
+ <td> </td>
<td>
<a href="/file/tip/d1?style=spartan">d1/</a>
<a href="/file/tip/d1/d2?style=spartan">
d2
</a>
+ </td>
+ </tr>
</table>
--- a/tests/test-hgweb-symrev.t Fri Apr 20 15:21:03 2018 +0200
+++ b/tests/test-hgweb-symrev.t Thu May 31 16:52:02 2018 +0800
@@ -967,7 +967,7 @@
<td><a href="/file/tip/?style=spartan">[up]</a>
<a href="/file/tip/dir?style=spartan">dir/</a>
<a href="/file/tip/dir/?style=spartan">
- <td><a href="/file/tip/foo?style=spartan">foo</a>
+ <td><a href="/file/tip/foo?style=spartan">foo</a></td>
$ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=spartan&rev=all()' | egrep $REVLINKS
<a href="/archive/tip.zip">zip</a>
@@ -1040,7 +1040,7 @@
<td><a href="/file/xyzzy/?style=spartan">[up]</a>
<a href="/file/xyzzy/dir?style=spartan">dir/</a>
<a href="/file/xyzzy/dir/?style=spartan">
- <td><a href="/file/xyzzy/foo?style=spartan">foo</a>
+ <td><a href="/file/xyzzy/foo?style=spartan">foo</a></td>
$ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=spartan' | egrep $REVLINKS
<a href="/log/xyzzy?style=spartan">changelog</a>