(Arne Babenhauserheide)
2014-02-08: write the content only once. write the content only once.
diff --git a/staticsite.py b/staticsite.py --- a/staticsite.py +++ b/staticsite.py @@ -658,9 +658,7 @@ def writebugs(ui, repo, target, name): raise Exception("bugfile content does not match content to write. Needs overwriting.") except: # generic exception: If anything went wrong, we need to write the file. with open(bugsfile, "w") as bf: - bf.write(templates["head"].replace("{reponame}", "<a href='../'>"+name+"</a>").replace("{title}", name)) bf.write(content) - bf.write(templates["foot"].replace("{reponame}", "<a href='../'>"+name+"</a>")) def escapename(filename): """escape index.html as .index.html and .ind… as ..ind… and so fort."""