src/eric7/Templates/TemplatesFile.py

branch
eric7
changeset 10459
5c5ed40d533d
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10458:2074b8393649 10459:5c5ed40d533d
74 } 74 }
75 ) 75 )
76 templatesDict["template_groups"] = templateGroups 76 templatesDict["template_groups"] = templateGroups
77 77
78 try: 78 try:
79 jsonString = json.dumps(templatesDict, indent=2) 79 jsonString = json.dumps(templatesDict, indent=2) + "\n"
80 with open(filename, "w") as f: 80 with open(filename, "w") as f:
81 f.write(jsonString) 81 f.write(jsonString)
82 except (OSError, TypeError) as err: 82 except (OSError, TypeError) as err:
83 with EricOverridenCursor(): 83 with EricOverridenCursor():
84 EricMessageBox.critical( 84 EricMessageBox.critical(

eric ide

mercurial