workflows: don't break on quotation marks in status names (#11493)

This commit is contained in:
Frédéric Péters 2016-06-22 17:13:44 +02:00
parent 2f3e37f9be
commit 071bd24885
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ def graphviz(workflow, url_prefix='', select=None, svg=True,
for status in workflow.possible_status:
i = status.id
print >>out, 'status%s' % i,
print >>out, '[label="%s"' % status.name,
print >>out, '[label="%s"' % status.name.replace('"', "'"),
if select == str(i):
print >>out, ',id=current_status'
if status.colour: