##// END OF EJS Templates
Merge pull request #7479 from minrk/terminal-newline...
Thomas Kluyver -
r19960:204b7c7e merge
parent child Browse files
Show More
@@ -158,4 +158,6 def write(nb, fp, version=NO_CONVERT, **kwargs):
158 s = writes(nb, version, **kwargs)
158 s = writes(nb, version, **kwargs)
159 if isinstance(s, bytes):
159 if isinstance(s, bytes):
160 s = s.decode('utf8')
160 s = s.decode('utf8')
161 return fp.write(s)
161 fp.write(s)
162 if not s.endswith(u'\n'):
163 fp.write(u'\n')
General Comments 0
You need to be logged in to leave comments. Login now