diff --git a/mercurial/templates/spartan/changelog.tmpl b/mercurial/templates/spartan/changelog.tmpl
--- a/mercurial/templates/spartan/changelog.tmpl
+++ b/mercurial/templates/spartan/changelog.tmpl
@@ -8,11 +8,11 @@
diff --git a/mercurial/templates/spartan/manifest.tmpl b/mercurial/templates/spartan/manifest.tmpl
--- a/mercurial/templates/spartan/manifest.tmpl
+++ b/mercurial/templates/spartan/manifest.tmpl
@@ -4,12 +4,12 @@
@@ -21,7 +21,7 @@
drwxr-xr-x
|
|
- | [up]
+ | [up]
{dentries%direntry}
{fentries%fileentry}
diff --git a/mercurial/templates/spartan/map b/mercurial/templates/spartan/map
--- a/mercurial/templates/spartan/map
+++ b/mercurial/templates/spartan/map
@@ -31,8 +31,8 @@ direntry = '
|
|
|
- {basename|escape}/
-
+ {basename|escape}/
+
{emptydirs|urlescape}
'
@@ -41,7 +41,7 @@ fileentry = '
| {permissions|permissions}
| {date|isodate}
| {size}
- | {basename|escape}'
+ | {basename|escape}'
filerevision = filerevision.tmpl
fileannotate = fileannotate.tmpl
@@ -183,7 +183,7 @@ indexentry = '
|
'
index = index.tmpl
-archiveentry = '{type|escape} '
+archiveentry = '{type|escape} '
notfound = notfound.tmpl
error = error.tmpl
urlparameter = '{separator}{name}={value|urlescape}'
diff --git a/mercurial/templates/spartan/shortlog.tmpl b/mercurial/templates/spartan/shortlog.tmpl
--- a/mercurial/templates/spartan/shortlog.tmpl
+++ b/mercurial/templates/spartan/shortlog.tmpl
@@ -8,11 +8,11 @@