From: Sam Moore Date: Mon, 12 Dec 2011 16:19:13 +0000 (+0800) Subject: Stopped "newline creep" in .html files X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e1a5a224763b1374c8dff6dcc2f5d85c15335eae;p=progcomp2012.git Stopped "newline creep" in .html files --- diff --git a/progcomp/judge/simulator/simulate.py b/progcomp/judge/simulator/simulate.py index 76ca0a5..5ad6448 100755 --- a/progcomp/judge/simulator/simulate.py +++ b/progcomp/judge/simulator/simulate.py @@ -144,7 +144,7 @@ for agent in agents: for line in oldFile: if line.strip() == "": break - agentFile.write(line + "\n") + agentFile.write(line.strip() + "\n") oldFile.close() agentFile.close() os.remove("tmpfile")