pytransitions / transitions

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

Add trailing newline to graph's node labels #583

Closed spagh-eddie closed 1 year ago

spagh-eddie commented 1 year ago

Fixes #582

I tested this with combinations: on_enter, on_enter+on_exit, timeout+on_timeout, and on_enter+timeout+on_timeout

states = [
    {
        "name": "initial",
        "on_enter": ["this is odd", "see?"],
        "on_exit": ["this is odd", "see?"],
        "timeout": 30,
        "on_timeout": ["do_something", "do_something"],
    }
]