##// END OF EJS Templates
Improve auto-indentation
Gael Varoquaux -
Show More
@@ -340,9 +340,9 b' class LineFrontEndBase(FrontEndBase):'
340 340 new_line = self.continuation_prompt() + \
341 341 self._get_indent_string('\n'.join(
342 342 prompt_less_lines[:new_line_pos-1]))
343 if len(lines) == 2:
343 if len(lines) == 1:
344 344 new_line += '\t'
345 if current_buffer[:-1].split('\n')[-1].rstrip().endswith(':'):
345 elif current_buffer[:-1].split('\n')[-1].rstrip().endswith(':'):
346 346 new_line += '\t'
347 347
348 348 if new_line_pos == 0:
General Comments 0
You need to be logged in to leave comments. Login now