Skip to content

Commit

Permalink
Removed useless space characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmartin committed Dec 31, 2010
1 parent 0bbe525 commit 31ef4d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def generateDate(fileName):
mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime = os.stat(fileName)
filedate= datetime(*localtime(mtime)[0:6])
date = "%s %s:%s:%s" % (date,
filedate.hour,
filedate.hour,
filedate.minute,
filedate.second)
try:
Expand Down Expand Up @@ -484,7 +484,7 @@ def renderEntryLinks(entries, text=None):
if text:
link += "</br><pre>%s</pre>" % text
link += "</li>"
print link
print link


def renderCategories(catelist, ent, path):
Expand All @@ -499,7 +499,7 @@ def renderCategories(catelist, ent, path):
sortedcat.sort()
print "<h2>%s</h2>" % l_categories
print "<ul>"

for cat in sortedcat:
print "<li><a href=\"%s/%s\">%s</a> (%s)</li>" % (
baseurl, quote_plus(cat), cat, len(catelist[cat]))
Expand Down Expand Up @@ -588,7 +588,7 @@ def renderSearch(filelist, ent, searchstring):
f.close()
except:
pass

for file in matchedfiles.iterkeys():
pline = ""

Expand Down Expand Up @@ -756,7 +756,7 @@ def renderHtml(entries, path, catelist, arclist, admin, page):
'/'.join(path),
page-1,
l_previouspage
)
)
print "<a href=\"%s/%s?page=%s\">%s</a>" % (
baseurl,
'/'.join(path),
Expand Down Expand Up @@ -927,7 +927,7 @@ def main():
mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime = os.stat(
os.path.join(datadir,file))
filelist[generateDate(os.path.join(datadir,file))] = file
# Read the main index
# Read the main index
indexold = list()
try:
indexoldfile = open(os.path.join(indexdir,'main.index'), 'rb')
Expand Down Expand Up @@ -1060,7 +1060,7 @@ def main():
else:
entries = ent.getOne("%s.txt" % unquote_plus(path[0]))
except:
entries = ent.getMany(page)
entries = ent.getMany(page)
elif len(path) == 1 and deletecomment:
# check if this is incoming comment
fs = cgi.FieldStorage(keep_blank_values=1)
Expand All @@ -1075,7 +1075,7 @@ def main():
try:
entries = ent.getOne("%s.txt" % unquote_plus(path[0]))
except:
entries = ent.getMany(page)
entries = ent.getMany(page)
else:
entries = ent.getMany(page)

Expand Down

0 comments on commit 31ef4d3

Please sign in to comment.