Skip to content

Commit

Permalink
Add newlines to the end of generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelpro committed Jan 3, 2020
1 parent 474def7 commit 3dfb2a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mcd2c/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,8 +1900,10 @@ def run(version):
if p.need_free:
impl.append(c.blank())
impl.append(p.gen_freefunc())
hdr.append(c.blank())
impl.append(c.blank())
impl.append(gen_toclient_decode(org_packets))
impl.append(c.blank())

fp = open(hdr.path, 'w+')
fp.write(str(hdr))
Expand Down
1 change: 1 addition & 0 deletions mcd2c/cfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,4 +483,5 @@ def __str__(self):
t = sequence([indef(self.guard), define(self.guard), blank(2)])
t.extend(self)
t.append(endif())
t.append(blank())
return str(t)

0 comments on commit 3dfb2a4

Please sign in to comment.