You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-26 21:23:26 +03:00
Don't put in spurious newline
This commit is contained in:
@@ -38,9 +38,10 @@ with open(dstpath) as ifp:
|
||||
elif strippedline.endswith(','):
|
||||
ofp.write(line)
|
||||
else:
|
||||
ofp.write(' '+strippedline)
|
||||
ofp.write(",\n")
|
||||
toAddStr = json.dumps(toAdd, indent=4, separators=(',', ': '), ensure_ascii=False, encoding="utf8")[1:-1]
|
||||
ofp.write(' '+strippedline+',')
|
||||
toAddStr = json.dumps(toAdd, indent=4, separators=(',', ': '), ensure_ascii=False, encoding="utf8").strip("{}\n")
|
||||
ofp.write("\n")
|
||||
ofp.write(toAddStr.encode('utf8'))
|
||||
ofp.write("\n")
|
||||
|
||||
os.rename(tmppath, dstpath)
|
||||
|
||||
Reference in New Issue
Block a user