##// END OF EJS Templates
always add a trailing newline
Bart Skowron -
Show More
@@ -571,8 +571,7 b' class TransformerManager:'
571 The number of spaces by which to indent the next line of code. If
571 The number of spaces by which to indent the next line of code. If
572 status is not 'incomplete', this is None.
572 status is not 'incomplete', this is None.
573 """
573 """
574 if not cell.endswith('\n'):
574 cell += '\n' # Ensure the cell has a trailing newline
575 cell += '\n' # Ensure the cell has a trailing newline
576 lines = cell.splitlines(keepends=True)
575 lines = cell.splitlines(keepends=True)
577 if lines[-1][:-1].endswith('\\'):
576 if lines[-1][:-1].endswith('\\'):
578 # Explicit backslash continuation
577 # Explicit backslash continuation
General Comments 0
You need to be logged in to leave comments. Login now