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 = '
- drwxr-xr-x
- |
- |
+ | drwxr-xr-x |
+ |
+ |
{basename|escape}/
{emptydirs|urlescape}
- '
+
+ |
+
'
fileentry = '
- {permissions|permissions}
- | {date|isodate}
- | {size}
- | {basename|escape}'
+ | {permissions|permissions} |
+ {date|isodate} |
+ {size} |
+ {basename|escape} |
+
'
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)
- drwxr-xr-x
- |
- |
+ | drwxr-xr-x |
+ |
+ |
a1/
a2/a3/a4
+ |
+
- drwxr-xr-x
- |
- |
+ | drwxr-xr-x |
+ |
+ |
b1/
b2/b3
+ |
+
- drwxr-xr-x
- |
- |
+ | drwxr-xr-x |
+ |
+ |
d1/
d2
+ |
+
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
[up]
dir/
- | foo
+ | foo |
$ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=spartan&rev=all()' | egrep $REVLINKS
zip
@@ -1040,7 +1040,7 @@ Set up the repo
[up]
dir/
- | foo
+ | foo |
$ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy/foo?style=spartan' | egrep $REVLINKS
changelog