Show More
@@ -184,6 +184,10 b' class IPythonWidget(FrontendWidget):' | |||||
184 | self._append_plain_text(self.output_sep) |
|
184 | self._append_plain_text(self.output_sep) | |
185 | self._append_html(self._make_out_prompt(prompt_number)) |
|
185 | self._append_html(self._make_out_prompt(prompt_number)) | |
186 | text = data['text/plain'] |
|
186 | text = data['text/plain'] | |
|
187 | # If the repr is multiline, make sure we start on a new line, | |||
|
188 | # so that its lines are aligned. | |||
|
189 | if "\n" in text and not self.output_sep.endswith("\n"): | |||
|
190 | self._append_plain_text('\n') | |||
187 | self._append_plain_text(text + self.output_sep2) |
|
191 | self._append_plain_text(text + self.output_sep2) | |
188 |
|
192 | |||
189 | def _handle_display_data(self, msg): |
|
193 | def _handle_display_data(self, msg): |
General Comments 0
You need to be logged in to leave comments.
Login now