Skip to content

[Workflow] New lines (\n) results in partially coloured label in image generated from PUML dump #49311

Closed
@alexislefebvre

Description

@alexislefebvre

Symfony version(s) affected

5.4+

Description

When I use \n in the label of a transition, the PNG file generated from the PUML file shows text with and without the color applied.

Using quotes breaks the generation of the PNG image, but it may be the expected behaviour of the YAML Component.

How to reproduce

                symfony_test:
                    from: [pending, created, scheduled]
                    to: courierconfirmed
                    metadata:
                        color: 'DarkGreen'
                        arrow_color: 'DarkGreen'
                        label: "Lorem ipsum\n(hey)"

Here is the result:

image

Possible Solution

Close the <font> tag before \n and reopen it after that new line.

Additional Context

See also #49174

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions