summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fsm-to-dot.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/fsm-to-dot.py b/contrib/fsm-to-dot.py
index 7a4694e7..872577e8 100755
--- a/contrib/fsm-to-dot.py
+++ b/contrib/fsm-to-dot.py
@@ -532,7 +532,10 @@ class Fsm:
if out_edge.actions:
labels.extend(out_edge.action_labels())
if labels:
- attrs.append('label="%s"' % (r'\n'.join(labels)))
+ label = r'\n'.join(labels)
+ else:
+ label = '-'
+ attrs.append('label="%s"' % label)
if out_edge.style:
attrs.append('style=%s'% out_edge.style)
if out_edge.color: