packageStyle doesn't seem to always work

0 votes
asked Jun 16, 2020 in Bug by Martin
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.
commented Jun 16, 2020 by The-Lu (63,920 points)

Hello M.,

Here are your two diagrams:


[Click to see on the PlantUML online server]

Versus:


[Click ...]

// A simply method for include diagram in Q&A, from the PlantUML online server, is both

  • cut and paste
  • or drag and drop output image.

or more complex include the URL of the digram on the image form.  //

If that can help,
Regards,
Th.

commented Jun 16, 2020 by Martin
Thank you for the info Th.!

1 Answer

0 votes
answered Jun 22, 2020 by Martin
 
Best answer

Thanks PlantUML, fixed in 20 Jun, 2020: Minor bug fixes and improvements (V1.2020.14).

...