Skip to content

Commit f474239

Browse files
committed
Recognize there is a XML box type
1 parent 758aab0 commit f474239

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pymathics/graph/__main__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,12 @@ def boxes_to_text(self, leaves, **options):
194194
return "-Graph-"
195195

196196
def boxes_to_xml(self, leaves, **options):
197-
return self._graphics_box(leaves, options).boxes_to_xml(**options)
197+
# Figure out what to do here.
198+
return "-Graph-XML-"
198199

199200
def boxes_to_tex(self, leaves, **options):
200-
return self._graphics_box(leaves, options).boxes_to_tex(**options)
201+
# Figure out what to do here.
202+
return "-Graph-TeX-"
201203

202204

203205
class _Collection(object):
@@ -389,6 +391,10 @@ def __hash__(self):
389391
def atom_to_boxes(self, form, evaluation):
390392
return Expression("GraphBox", self, form)
391393

394+
def boxes_to_xml(self, **options):
395+
# Figure out what to do here.
396+
return "-Graph-XML-"
397+
392398
def get_property(self, item, name):
393399
if item.get_head_name() in ("System`DirectedEdge", "System`UndirectedEdge"):
394400
x = self.edges.get_property(item, name)

0 commit comments

Comments
 (0)