Skip to content

Commit 3e86e2d

Browse files
authored
fix(graphviz): ensure all lines are left-justified (#10783)
1 parent 12a45cf commit 3e86e2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ibis/expr/visualize.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,18 @@ def get_label(node):
7272
)
7373
if nodename is not None:
7474
if isinstance(node, ops.Relation):
75-
label_fmt = "<<I>{}</I>: <B>{}</B>{}>"
75+
label_fmt = "<<I>{}</I>: <B>{}</B>{}"
7676
else:
77-
label_fmt = '<<I>{}</I>: <B>{}</B><BR ALIGN="LEFT" />:: {}>'
77+
label_fmt = '<<I>{}</I>: <B>{}</B><BR ALIGN="LEFT" />:: {}'
7878
# typename is already escaped
7979
label = label_fmt.format(escape(nodename), escape(name), typename)
8080
else:
8181
if isinstance(node, ops.Relation):
82-
label_fmt = "<<B>{}</B>{}>"
82+
label_fmt = "<<B>{}</B>{}"
8383
else:
84-
label_fmt = '<<B>{}</B><BR ALIGN="LEFT" />:: {}>'
84+
label_fmt = '<<B>{}</B><BR ALIGN="LEFT" />:: {}'
8585
label = label_fmt.format(escape(name), typename)
86-
return label
86+
return f'{label}<BR ALIGN="LEFT" />>'
8787

8888

8989
DEFAULT_NODE_ATTRS = {"shape": "box", "fontname": "Deja Vu Sans Mono"}

0 commit comments

Comments
 (0)