plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.41k stars 1.1k forks source link

Based on PlantUML changes/bug, spaces in stereotype/tag names are not working anymore. Sample updates are required #222

Closed kirchsth closed 2 years ago

kirchsth commented 2 years ago
@startuml
!include <C4/C4_Container>

' Based on PlantUML changes/bug, spaces in stereotypes (tags) are not working anymore
AddContainerTag("backend Container", $bgColor="#335DA5")
Container(backend2, "With space in stereotype/tag", "Docker Container", $tags="backend Container")

' Without spaces stereotypes (tags) are working 
' if space in legend is required, it can be explicitly defined via $legendText 
AddContainerTag("backendContainer", $bgColor="#335DA5", $legendText="backend Container")
Container(backend1, "No space in stereotype/tag", "Docker Container", $tags="backendContainer")

SHOW_LEGEND()
@enduml

current (not working anymore sample)

fixed