Show More
@@ -340,9 +340,9 b' class LineFrontEndBase(FrontEndBase):' | |||||
340 | new_line = self.continuation_prompt() + \ |
|
340 | new_line = self.continuation_prompt() + \ | |
341 | self._get_indent_string('\n'.join( |
|
341 | self._get_indent_string('\n'.join( | |
342 | prompt_less_lines[:new_line_pos-1])) |
|
342 | prompt_less_lines[:new_line_pos-1])) | |
343 |
if len(lines) == |
|
343 | if len(lines) == 1: | |
344 | new_line += '\t' |
|
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 | new_line += '\t' |
|
346 | new_line += '\t' | |
347 |
|
347 | |||
348 | if new_line_pos == 0: |
|
348 | if new_line_pos == 0: |
General Comments 0
You need to be logged in to leave comments.
Login now