Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Container Alias is treated differently based on if it has contents

0 votes

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


asked Jun 23 in bug by rd27 (160 points)

1 Answer

0 votes

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:

folder name1 as "desc1" {
  file test1

folder "name2" as desc2 {
  file test2

answered Jun 27 by plantuml (126,850 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).
Support This Project Offer 250 Mo! Follow PlantUML on Twitter