Empty package with "Folder" style shows strange text

+2 votes
asked Sep 28, 2016 in Bug by JohannesMeier (460 points)
edited Sep 28, 2016 by JohannesMeier

Hello,

while printing different kinds of packages, I found the following strange behaviour of packages:

 

@startuml
package "Folder1" as node1 <<Folder>> {
}
package "Folder2" as node2 <<Folder>> {
  class content
}
@enduml

 

http://plantuml.com/plantuml/png/AqXCpavCJrLGSilFIKajCbHII2nMoCjFIJLKiB61YDdPALHprN8LeAeqWgiqGbMfe92SarXSh92SdrUIcbV2LGi0

 

The problem of the empty package with the Folder style is, that it shows its label (from my point of view: this is internal information and should be hidden) and its name together.

My suggestion for improving the visualization of an empty package: Remove "Folder1" and replace "node1" by "Folder1".

1 Answer

0 votes
answered Jun 18, 2019 by te_ess (140 points)
edited Jun 18, 2019 by te_ess
I have encountered a similar problem...

when using a shortname of a package the rendering of 2 different empty packages "EMPTY 1" and "EMPTY 2" differs as soon as I  add another non-empty package (P2 in the case below)

please find the diagram with package P2

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuL80WeB4vEp4z5G59LVVW9181KCbXSHYXG13XMgmR2qNDaL6IWXfk5HUVfv2Qcv1IINK22EW4WtD2gvQBeVKl1IGTG00

and without P2

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuL80WeB4vEp4z5G59LVVW9181KCbXSHYXG13XMgmR2qNDaL6IWXfBeVKl1IWOG00

@startuml

    package "EMPTY 1" as P1 {
    }

    package "EMPTY 2" {
    }

package "non empty1" as P2{
 ()x
}

@enduml
...