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

C4-Plantuml: double ** when adding a \n in Rel text #61

Closed
dgutson opened this issue Nov 3, 2022 · 4 comments
Closed

C4-Plantuml: double ** when adding a \n in Rel text #61

dgutson opened this issue Nov 3, 2022 · 4 comments

Comments

@dgutson
Copy link

dgutson commented Nov 3, 2022

consider

@startuml
title SS - Containers

top to bottom direction

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

System_Boundary("SS_boundary", "SS") {
  Container(SS.Container1, "Container1", "", $tags="")
  Container(SS.Container2, "Container2", "", $tags="")
}

Rel_D(SS.Container1, SS.Container2, "Relation1\nRelation2", $tags="")

SHOW_LEGEND()
@enduml

This is the output:
image

Please note the double * because of the \n.

@dgutson dgutson changed the title double ** when adding a \n in Rel text C4-Plantum: double ** when adding a \n in Rel text Nov 3, 2022
@dgutson dgutson changed the title C4-Plantum: double ** when adding a \n in Rel text C4-Plantuml: double ** when adding a \n in Rel text Nov 3, 2022
@Potherca
Copy link
Contributor

Potherca commented Nov 4, 2022

This is a bug in the plantuml-stdlib/C4-PlantUML project.

I have created an issue addressing this bug there: plantuml-stdlib/C4-PlantUML#255

@dgutson
Copy link
Author

dgutson commented Nov 4, 2022

Thanks @Potherca

@kirchsth
Copy link
Contributor

kirchsth commented Dec 13, 2022

This issue is fixed with C4-PlantUML v.2.5.0;
C4-PlantUML v.2.5.0 is included in latest PlantUML v1.2022.15 beta1 too #67

E.g. you can test it via PlantUML web service

@startuml
!include <C4/C4_Container.puml>

System_Boundary("SS_boundary", "SS") {
  Container(SS.Container1, "Container1", "", $tags="")
  Container(SS.Container2, "Container2", "", $tags="")
}

Rel_D(SS.Container1, SS.Container2, "Relation1\nRelation2", $tags="")

SHOW_LEGEND()
@enduml

BR Helmut

@kirchsth
Copy link
Contributor

kirchsth commented Apr 1, 2023

v1.2022.15 + *.16 is already released, I think it can be closed

@dgutson dgutson closed this as completed Apr 2, 2023
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

3 participants