Add options to sandclock in tree document generator

This works and is actually needed to style the root node.
This commit is contained in:
Jonas Hahnfeld 2019-09-13 21:16:20 +02:00 committed by Nick Hall
parent cc28935b15
commit daa845492d

View File

@ -409,10 +409,7 @@ class TreeDocBase(BaseDoc, TreeDoc):
options = ['id=%s' % family.gramps_id]
if option_list:
options.extend(option_list)
if subgraph_type == 'sandclock':
self.write(level, 'sandclock{\n')
else:
self.write(level, '%s[%s]{\n' % (subgraph_type, ','.join(options)))
self.write(level, '%s[%s]{\n' % (subgraph_type, ','.join(options)))
def end_subgraph(self, level):
self.write(level, '}\n')