##// END OF EJS Templates
Merge pull request #5763 from minrk/qt-no-html...
Thomas Kluyver -
r16529:b2c20f7e merge
parent child Browse files
Show More
@@ -226,13 +226,7 b' class IPythonWidget(FrontendWidget):'
226 226 content = msg['content']
227 227 prompt_number = content.get('execution_count', 0)
228 228 data = content['data']
229 if 'text/html' in data:
230 self._append_plain_text(self.output_sep, True)
231 self._append_html(self._make_out_prompt(prompt_number), True)
232 html = data['text/html']
233 self._append_plain_text('\n', True)
234 self._append_html(html + self.output_sep2, True)
235 elif 'text/plain' in data:
229 if 'text/plain' in data:
236 230 self._append_plain_text(self.output_sep, True)
237 231 self._append_html(self._make_out_prompt(prompt_number), True)
238 232 text = data['text/plain']
@@ -256,10 +250,7 b' class IPythonWidget(FrontendWidget):'
256 250 metadata = msg['content']['metadata']
257 251 # In the regular IPythonWidget, we simply print the plain text
258 252 # representation.
259 if 'text/html' in data:
260 html = data['text/html']
261 self._append_html(html, True)
262 elif 'text/plain' in data:
253 if 'text/plain' in data:
263 254 text = data['text/plain']
264 255 self._append_plain_text(text, True)
265 256 # This newline seems to be needed for text and html output.
General Comments 0
You need to be logged in to leave comments. Login now