plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.73k stars 881 forks source link

[Bug] hide empty description not working when a state contains pins/entry/expansion #447

Open sboria opened 3 years ago

sboria commented 3 years ago

In the following example, the directive "hide empty description" works well for sin, sin2, foo, foo1 states.

 @startuml
 hide empty description
 state Somp {
   state entry1 <<inputPin>>
   state entry2 <<inputPin>>
   state sin
   entry1 --> sin
   entry2 -> sin
   sin -> sin2
   sin2 --> exitA <<outputPin>>
 }

 [*] --> entry1
 exitA --> Foo
 Foo1 -> entry2
 @enduml

If previous example is modified with "sin" integrating an inputPin (entry3), it doesn't hide the description for "sin" state anymore (while it is still working for the other states without any Pins)

 @startuml
 hide empty description
 state Somp {
   state entry1 <<inputPin>>
   state entry2 <<inputPin>>
   state sin {
 state entry3 <<inputPin>> 
 }
   entry1 --> entry3
   entry2 -> entry3
   sin -> sin2
   sin2 --> exitA <<outputPin>>
 }

 [*] --> entry1
 exitA --> Foo
 Foo1 -> entry2
 @enduml