@@ -83,11 +83,14 @@ def test_op_label_template_full():
8383 got = plot ._render_template (plot .Style .op_template , ** kw )
8484 print (got )
8585 exp = """
86- <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded" BORDER="44" COLOR="red" BGCOLOR="wheat"
87- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="<op " 	 tooltip>" HREF="http://op_url.com_label_" TARGET="_self"
88- ><FONT COLOR="blue"><B>OP:</B> <I>the op</I></FONT></TD></TR
89- ><TR><TD ALIGN="left" TOOLTIP="<fn tooltip>" HREF="http://fn_url.com/quoto_and" TARGET="_top"
90- ><FONT COLOR="blue"><B>FN:</B> the fn</FONT></TD></TR>
86+ <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded" BORDER="44" COLOR="red" BGCOLOR="wheat">
87+ <TR>
88+ <TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="<op " 	 tooltip>" HREF="http://op_url.com_label_" TARGET="_self"
89+ ><FONT COLOR="blue"><B>OP:</B> <I>the op</I></FONT></TD>
90+ </TR><TR>
91+ <TD ALIGN="left" TOOLTIP="<fn tooltip>" HREF="http://fn_url.com/quoto_and" TARGET="_top"
92+ ><FONT COLOR="blue"><B>FN:</B> the fn</FONT></TD>
93+ </TR>
9194 </TABLE>>
9295 """
9396
@@ -102,10 +105,11 @@ def test_op_label_template_empty():
102105 got = plot ._render_template (plot .Style .op_template )
103106 print (got )
104107 exp = """
105- <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
106- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TARGET=""
107- ></TD></TR
108- >
108+ <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded">
109+ <TR>
110+ <TD BORDER="1" SIDES="b" ALIGN="left" TARGET=""
111+ ></TD>
112+ </TR>
109113 </TABLE>>
110114 """
111115 assert _striplines (got ) == _striplines (exp )
@@ -115,11 +119,14 @@ def test_op_label_template_fn_empty():
115119 got = plot ._render_template (plot .Style .op_template , op_name = "op" , fn_name = "fn" )
116120 print (got )
117121 exp = """
118- <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
119- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TARGET=""
120- ><B>OP:</B> <I>op</I></TD></TR
121- ><TR><TD ALIGN="left" TARGET=""
122- ><B>FN:</B> fn</TD></TR>
122+ <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded">
123+ <TR>
124+ <TD BORDER="1" SIDES="b" ALIGN="left" TARGET=""
125+ ><B>OP:</B> <I>op</I></TD>
126+ </TR><TR>
127+ <TD ALIGN="left" TARGET=""
128+ ><B>FN:</B> fn</TD>
129+ </TR>
123130 </TABLE>>
124131 """
125132 assert _striplines (got ) == _striplines (exp )
@@ -142,10 +149,11 @@ def test_op_label_template_nones():
142149 got = plot ._render_template (plot .Style .op_template , ** kw )
143150 print (got )
144151 exp = """
145- <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
146- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TARGET=""
147- ></TD></TR
148- >
152+ <<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded">
153+ <TR>
154+ <TD BORDER="1" SIDES="b" ALIGN="left" TARGET=""
155+ ></TD>
156+ </TR>
149157 </TABLE>>
150158 """
151159
@@ -419,18 +427,24 @@ def test_node_dot_str0(dot_str_pipeline):
419427 splines=ortho;
420428 <edge> [shape=rect];
421429 <digraph: strict> [shape=rect];
422- <node> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
423- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='node', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='add')" TARGET=""
424- ><B>OP:</B> <I>node</I></TD></TR
425- ><TR><TD ALIGN="left" TOOLTIP="<built-in function add>" TARGET=""
426- ><B>FN:</B> _operator.add</TD></TR>
430+ <node> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded">
431+ <TR>
432+ <TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='node', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='add')" TARGET=""
433+ ><B>OP:</B> <I>node</I></TD>
434+ </TR><TR>
435+ <TD ALIGN="left" TOOLTIP="<built-in function add>" TARGET=""
436+ ><B>FN:</B> _operator.add</TD>
437+ </TR>
427438 </TABLE>>, shape=plain, tooltip=<node>];
428439 <<graph>> [shape=rect];
429- <cu:sto:m> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
430- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='cu:sto:m', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='func')" TARGET=""
431- ><B>OP:</B> <I>cu:sto:m</I></TD></TR
432- ><TR><TD ALIGN="left" TOOLTIP="def func(): pass" TARGET=""
433- ><B>FN:</B> test.test_plot.func</TD></TR>
440+ <cu:sto:m> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded">
441+ <TR>
442+ <TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='cu:sto:m', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='func')" TARGET=""
443+ ><B>OP:</B> <I>cu:sto:m</I></TD>
444+ </TR><TR>
445+ <TD ALIGN="left" TOOLTIP="def func(): pass" TARGET=""
446+ ><B>FN:</B> test.test_plot.func</TD>
447+ </TR>
434448 </TABLE>>, shape=plain, tooltip=<cu:sto:m>];
435449 <edge> -> <node>;
436450 <edge> -> <cu:sto:m>;
@@ -460,18 +474,24 @@ def test_node_dot_str1(dot_str_pipeline, monkeypatch):
460474 splines=ortho;
461475 <edge> [shape=rect];
462476 <digraph: strict> [shape=rect];
463- <node> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
464- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='node', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='add')" HREF="abc#{'dot_path': '_operator.add', 'posix_path': '_operator/add'}" TARGET="bad"
465- ><B>OP:</B> <I>node</I></TD></TR
466- ><TR><TD ALIGN="left" TOOLTIP="<built-in function add>" HREF="abc#{'dot_path': '_operator.add', 'posix_path': '_operator/add'}" TARGET="bad"
467- ><B>FN:</B> _operator.add</TD></TR>
477+ <node> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded">
478+ <TR>
479+ <TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='node', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='add')" HREF="abc#{'dot_path': '_operator.add', 'posix_path': '_operator/add'}" TARGET="bad"
480+ ><B>OP:</B> <I>node</I></TD>
481+ </TR><TR>
482+ <TD ALIGN="left" TOOLTIP="<built-in function add>" HREF="abc#{'dot_path': '_operator.add', 'posix_path': '_operator/add'}" TARGET="bad"
483+ ><B>FN:</B> _operator.add</TD>
484+ </TR>
468485 </TABLE>>, shape=plain, tooltip=<node>];
469486 <<graph>> [shape=rect];
470- <cu:sto:m> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded"
471- ><TR><TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='cu:sto:m', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='func')" HREF="abc#{'dot_path': 'test.test_plot.func', 'posix_path': 'test/test_plot/func'}" TARGET="bad"
472- ><B>OP:</B> <I>cu:sto:m</I></TD></TR
473- ><TR><TD ALIGN="left" TOOLTIP="def func(): pass" HREF="abc#{'dot_path': 'test.test_plot.func', 'posix_path': 'test/test_plot/func'}" TARGET="bad"
474- ><B>FN:</B> test.test_plot.func</TD></TR>
487+ <cu:sto:m> [label=<<TABLE CELLBORDER="0" CELLSPACING="0" STYLE="rounded">
488+ <TR>
489+ <TD BORDER="1" SIDES="b" ALIGN="left" TOOLTIP="FunctionalOperation(name='cu:sto:m', needs=['edge', 'digraph: strict'], provides=['<graph>'], fn='func')" HREF="abc#{'dot_path': 'test.test_plot.func', 'posix_path': 'test/test_plot/func'}" TARGET="bad"
490+ ><B>OP:</B> <I>cu:sto:m</I></TD>
491+ </TR><TR>
492+ <TD ALIGN="left" TOOLTIP="def func(): pass" HREF="abc#{'dot_path': 'test.test_plot.func', 'posix_path': 'test/test_plot/func'}" TARGET="bad"
493+ ><B>FN:</B> test.test_plot.func</TD>
494+ </TR>
475495 </TABLE>>, shape=plain, tooltip=<cu:sto:m>];
476496 <edge> -> <node>;
477497 <edge> -> <cu:sto:m>;
0 commit comments