fixed escaping issues
This commit is contained in:
@ -7,7 +7,9 @@ from bonobo.util.objects import get_name
|
|||||||
OUTPUT_GRAPHVIZ = 'graphviz'
|
OUTPUT_GRAPHVIZ = 'graphviz'
|
||||||
|
|
||||||
def _ident(graph, i):
|
def _ident(graph, i):
|
||||||
return json.dumps('{} [label="{}"]'.format(str(i),get_name(graph[i])))
|
escaped_index = str(i)
|
||||||
|
escaped_name = json.dumps(get_name(graph[i]))
|
||||||
|
return '{{{} [label={}]}}'.format(escaped_index,escaped_name)
|
||||||
|
|
||||||
def execute(*, output, **kwargs):
|
def execute(*, output, **kwargs):
|
||||||
graph, plugins, services = read(**kwargs)
|
graph, plugins, services = read(**kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user