Container Alias is treated differently based on if it has contents

0 votes
asked Jun 23, 2017 in Bug by rd27 (460 points)

How the alias is used for a folder (or other containers) is inconsistent. It changes based if the folder has children.

See the following example. name1 shows the title as desc1. But name2 shows the title as desc2, just because it has children. The title behavior shouldn't change just because there are children. I would say it should always show the description (the part in quotes).

folder name1 as "desc1"
folder name2 as "desc2" {
  file test2b
}
folder "desc1b" as name1b {
}
folder "desc2b" as name2b {
  file test2b
}

 

1 Answer

0 votes
answered Jun 27, 2017 by plantuml (295,000 points)

It's not very consistent indeed. We're going to have a look on it.

However, you can change the position of the quote to have the expected result:

@startuml
folder name1 as "desc1" {
  file test1
}

folder "name2" as desc2 {
  file test2
}
@enduml

commented Jun 28, 2017 by rd27 (460 points)
I did see that, but unfortunately that didn't work for me because I actually have a space in the description (which is what we want in the title).
...