0
0
Fork 0

Fixed EOF issue by appending newline on save and popping newline on load

This commit is contained in:
sloumdrone 2018-12-29 12:12:49 -08:00
parent 3e88cf3ae6
commit 2c2551d53d
1 changed files with 2 additions and 0 deletions

2
chalk
View File

@ -96,6 +96,8 @@ def chalk(path):
if os.path.exists(valid_path):
with open(valid_path,'r') as f:
content = f.read().split('\n')
if content[-1] == '':
content.pop()
print('\n Chalk 0.8 by sloum')
print('\n{} Writing:{} {}{}'.format(c.yellow, c.white, fn, c.end))