Show More
@@ -19,8 +19,6 b' Authors:' | |||||
19 |
|
19 | |||
20 | from __future__ import print_function |
|
20 | from __future__ import print_function | |
21 |
|
21 | |||
22 | from xml.dom import minidom |
|
|||
23 |
|
||||
24 | from .displaypub import ( |
|
22 | from .displaypub import ( | |
25 | publish_pretty, publish_html, |
|
23 | publish_pretty, publish_html, | |
26 | publish_latex, publish_svg, |
|
24 | publish_latex, publish_svg, | |
@@ -330,6 +328,7 b' class SVG(DisplayObject):' | |||||
330 | self._data = None |
|
328 | self._data = None | |
331 | return |
|
329 | return | |
332 | # parse into dom object |
|
330 | # parse into dom object | |
|
331 | from xml.dom import minidom | |||
333 | x = minidom.parseString(svg) |
|
332 | x = minidom.parseString(svg) | |
334 | # get svg tag (should be 1) |
|
333 | # get svg tag (should be 1) | |
335 | found_svg = x.getElementsByTagName('svg') |
|
334 | found_svg = x.getElementsByTagName('svg') |
General Comments 0
You need to be logged in to leave comments.
Login now