Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<< style >> breaks multiline activities #1762

Closed
gaspardpetit opened this issue May 3, 2024 · 3 comments
Closed

<< style >> breaks multiline activities #1762

gaspardpetit opened this issue May 3, 2024 · 3 comments

Comments

@gaspardpetit
Copy link

gaspardpetit commented May 3, 2024

Describe the bug
Activities can be described on multiple lines, for example:

@startuml
:hello
world!!!;
@enduml

However, multiline actitivies do not work when a << style >> is provided.

To Reproduce
Steps to reproduce the behavior:

  1. Observe that this example results in a multi-line activity: https://www.plantuml.com/plantuml/uml/SoWkIImgAStDuRBAICt9oUSgpo_AIL5KLBJcSaZDIm5A0000
  2. Observe that this example results in a styled activity: https://www.plantuml.com/plantuml/uml/SoWkIImgAStDuR8fBgdCIRNZIamkoIpBBAbqoKnCBqhCLQZcKb3GIqaipaXD2GQf00a0WKzcNYg4RmBartBLSjdeGqsmiL50LczdP-MHcfEJhn2UNvIJegYeQCtba9gN0hGJ0000
  3. Observe that this example results in a syntax error: https://www.plantuml.com/plantuml/uml/SoWkIImgAStDuR8fBgdCIRNZIamkoIpBBAbqoKnCBqhCLQZcKb3GIqaipaXD2GQf00a0WKzcNYg4RmBartBLSjdeGqsmiL50LczdP-MHcfEJhn2UNvIJegYeQCtba9gN0hGJ0000

Expected behavior
From the following example, I was expecting to have a multiline styled activity:

@startuml
<style>
activityDiagram {
  .dashedStyle {
    LineStyle 4
  }
}
</style>
<< dashedStyle >>:Hello 
World!!!;
@enduml
@github-actions github-actions bot added the triage label May 3, 2024
@The-Lum
Copy link
Collaborator

The-Lum commented May 3, 2024

Hi @gaspardpetit,

Here is the good usage of stereotype with multi-line activity:

@startuml
<style>
activityDiagram {
  .dashedStyle {
    LineStyle 4
  }
}
</style>
:Hello 
World!!!;<<dashedStyle>>
@enduml

Enjoy,
Regards,
Th.

@The-Lum The-Lum removed the triage label May 3, 2024
@gaspardpetit
Copy link
Author

Brilliant! Thanks!

@The-Lum
Copy link
Collaborator

The-Lum commented May 4, 2024

[Just for the record,] See also ref. here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants