Compare the output of
@startuml
skinparam packageStyle rectangle
package A {
rectangle B
}
@enduml
against
@startuml
skinparam packageStyle rectangle
package A {
rectangle B {
}
}
@enduml
The first ignores the packageStyle for A, whereas the second works as expected and uses a rectangle for A.
PS It would be handy if the Ask a Question form had some tips on how to properly include PlantUML example text. I've seen some people have click-thru pictures, but I'm not sure how to achieve. In fact I'm not sure how my above examples will render.