pytransitions / transitions

A lightweight, object-oriented finite state machine implementation in Python with many extensions
MIT License
5.49k stars 525 forks source link

Last label on graph node not left-aligned #582

Closed spagh-eddie closed 1 year ago

spagh-eddie commented 1 year ago

Describe the bug The last line/label in a node is not left-aligned.

out

Minimal working example

from transitions.extensions.diagrams import GraphMachine

m = GraphMachine(
    states=[{"name": "initial", "on_enter": ["this is odd", "behavior", "see?"]}],
    show_state_attributes=True,
)
m.get_graph().draw("out.png", prog="dot")

Expected behavior I expect the labels to be consistently left-aligned.

Additional context Using transitions version 0.8.10