"hide empty description" not hiding with {entry,exit}points

0 votes
asked Mar 15, 2016 in Wanted features by fred (540 points)

Hello,

"hide empty description" hides the contents of a state when it is empty.

However, it does nothing when a state contains only {entry,exit}points or {input,output}Pin or expansion{Input,Output}.

Couldn't such states be considered as empty? This would help improve diagrams.

 
Thanks,
 
Fred

1 Answer

0 votes
answered Mar 15, 2016 by plantuml (295,000 points)
Sure. Could you post here a short and simple example that shows the issue. It would help!

Thanks!
commented Mar 15, 2016 by fred (540 points)
For instance, in the following example:

@startuml
hide empty description

state A

state B {
}

state C {
  state d <<entrypoint>>
}
@enduml

State A has no "description" compartment, as expected. I would expect states B & C to also have no such compartment.

Although B has curly braces, there is nothing between them. Of course, one could avoid writing them and obtain the expected result.

However, for C, the curly braces are mandatory to specify the <<entrypoint>>. But because the <<entrypoint>> is displayed on the state border, the "description" compartment is actually empty, and should therefore not be shown. Moreover, it appears even bigger than B's description compartment because it contains a white rectangle.

Avoiding showing all effectively empty "description" compartment would lead to more compact and readable diagrams.

Thanks!
commented Oct 1, 2023 by sion-zenit (120 points)
Hello! Is there any solution?
...