@@ -304,17 +304,17 @@ def test_repr_html(renderer):
304
304
id_html = str_html .split ('document.getElementById("' )[1 ].split ('")' )[0 ]
305
305
id_pattern = "cd462b94-79ce-42a2-887f-2650a761a144"
306
306
template = (
307
- '<div>\n \n <script type="text/javascript">'
308
- "window.PlotlyConfig = {MathJaxConfig: 'local'};</script>\n "
309
- '<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> \n '
307
+ '<div> <script type="text/javascript">'
308
+ "window.PlotlyConfig = {MathJaxConfig: 'local'};</script> "
309
+ '<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> '
310
310
'<div id="cd462b94-79ce-42a2-887f-2650a761a144" class="plotly-graph-div" '
311
- 'style="height:100%; width:100%;"></div>\n <script type="text/javascript">'
312
- "\n \n window.PLOTLYENV=window.PLOTLYENV || {};"
313
- '\n \n if (document.getElementById("cd462b94-79ce-42a2-887f-2650a761a144"))'
314
- " {\n Plotly.newPlot(\n 'cd462b94-79ce-42a2-887f-2650a761a144',"
315
- '\n [],\n {"template": {}},'
316
- '\n {"responsive": true}\n )\n };'
317
- "\n \n </script>\n </div>"
311
+ 'style="height:100%; width:100%;"></div> <script type="text/javascript">'
312
+ " window.PLOTLYENV=window.PLOTLYENV || {};"
313
+ ' if (document.getElementById("cd462b94-79ce-42a2-887f-2650a761a144"))'
314
+ " { Plotly.newPlot( 'cd462b94-79ce-42a2-887f-2650a761a144',"
315
+ ' [], {"template": {}},'
316
+ ' {"responsive": true} ) };'
317
+ " </script> </div>"
318
318
)
319
319
if "text/html" in bundle :
320
320
str_bundle = bundle ["text/html" ]
0 commit comments