[PATCH 1 of 5] spartan: add missing closing tags

Anton Shestakov av6 at dwimlabs.net
Thu May 31 09:11:36 EDT 2018


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1527756722 -28800
#      Thu May 31 16:52:02 2018 +0800
# Node ID 5763aad1f7b9643c761d82a757ee0504a32b7c41
# Parent  5a87bf0bd34377f10b19d770acb943d7fda250f3
spartan: add missing closing tags

Browsers apparently don't care about this, but let's fix it for humans.

diff --git a/mercurial/templates/spartan/map b/mercurial/templates/spartan/map
--- a/mercurial/templates/spartan/map
+++ b/mercurial/templates/spartan/map
@@ -27,21 +27,24 @@ filenav = '{before%filenaventry}{after%f
 
 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
diff --git a/tests/test-hgweb-descend-empties.t b/tests/test-hgweb-descend-empties.t
--- a/tests/test-hgweb-descend-empties.t
+++ b/tests/test-hgweb-descend-empties.t
@@ -532,32 +532,38 @@ manifest with descending (spartan)
   </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>
   
diff --git a/tests/test-hgweb-symrev.t b/tests/test-hgweb-symrev.t
--- a/tests/test-hgweb-symrev.t
+++ b/tests/test-hgweb-symrev.t
@@ -967,7 +967,7 @@ Set up the repo
     <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 @@ Set up the repo
     <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>


More information about the Mercurial-devel mailing list