Index: Lib/SimpleHTTPServer.py
===================================================================
--- Lib/SimpleHTTPServer.py (revision 60994)
+++ Lib/SimpleHTTPServer.py (working copy)
@@ -113,8 +113,9 @@
list.sort(key=lambda a: a.lower())
f = StringIO()
displaypath = cgi.escape(urllib.unquote(self.path))
- f.write("
Directory listing for %s\n" % displaypath)
- f.write("Directory listing for %s
\n" % displaypath)
+ f.write('')
+ f.write("\nDirectory listing for %s\n" % displaypath)
+ f.write("\nDirectory listing for %s
\n" % displaypath)
f.write("
\n\n")
for name in list:
fullname = os.path.join(path, name)
@@ -128,7 +129,7 @@
# Note: a link to a directory displays with @ and links with /
f.write('- %s\n'
% (urllib.quote(linkname), cgi.escape(displayname)))
- f.write("
\n
\n")
+ f.write("\n
\n\n\n")
length = f.tell()
f.seek(0)
self.send_response(200)