update based on review

pull/482/head
anovis 4 years ago
parent 6ed0d861a2
commit 55f012b514

@ -304,8 +304,11 @@ class Node:
raise EnvironmentError("Global diagrams context not set up") raise EnvironmentError("Global diagrams context not set up")
if self._diagram.autolabel: if self._diagram.autolabel:
# import pdb; pdb.set_trace() prefix = self.__class__.__name__
self.label = self.__class__.__name__ + "\n" + self.label if self.label:
self.label = prefix + "\n" + self.label
else:
self.label = prefix
# fmt: off # fmt: off
# If a node has an icon, increase the height slightly to avoid # If a node has an icon, increase the height slightly to avoid

Loading…
Cancel
Save