Stopped "newline creep" in .html files
authorSam Moore <[email protected]>
Mon, 12 Dec 2011 16:19:13 +0000 (00:19 +0800)
committerSam Moore <[email protected]>
Mon, 12 Dec 2011 16:19:13 +0000 (00:19 +0800)
progcomp/judge/simulator/simulate.py

index 76ca0a5..5ad6448 100755 (executable)
@@ -144,7 +144,7 @@ for agent in agents:
        for line in oldFile:
                if line.strip() == "</body>":
                        break
-               agentFile.write(line + "\n")
+               agentFile.write(line.strip() + "\n")
        oldFile.close()
        agentFile.close()
        os.remove("tmpfile")

UCC git Repository :: git.ucc.asn.au