Commit 7d78f684 authored by Alex Pearce's avatar Alex Pearce
Browse files

Use consistent node styling.

parent 1e37bb83
......@@ -566,8 +566,8 @@ class Algorithm(object):
props = dict(props.items() + output_props.items())
props_str = '<BR/>'.join(
html_escape('{} = {}'.format(k, v)) for k, v in props.items())
label = ('<{}<BR/><FONT POINT-SIZE="8">{}</FONT>>'.format(
own_name, props_str or 'defaults-only'))
label = ('<<B>{}</B><BR/>{}>'.format(own_name, props_str
or 'defaults-only'))
gnode = pydot.Node(own_name, label=label, shape='plaintext')
sg.add_node(gnode)
......@@ -607,8 +607,7 @@ class Algorithm(object):
for toolname, inputs in tool_inputs.items():
for name in inputs:
input_id = html_escape('{}_in_{}'.format(toolname, name))
label = ('<{}<BR/><FONT POINT-SIZE="8">from {}</FONT>>'.format(
name, toolname))
label = ('<<B>{}</B><BR/>from {}>'.format(name, toolname))
node = pydot.Node(
input_id,
label=label,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment