empty package on one line parsing error

0 votes
asked Aug 19, 2024 in Bug by da77a
If I do this

skinparam package {
  BackgroundColor LightBlue
  ArrowColor Black
  BorderColor Blue
  BackgroundColor<<stereo>> PaleGreen
}
package test1 {}
package test2 <<stereo>> {}

I get an error on the line package test2 <<stereo>> {}

But if I change it to

package test2 <<stereo>> {

}

There is no error and the stereotype works.
commented Mar 10 by The-Lu (79,040 points)

Hello D.,

Currently, there is no error.

But the output is funny...

Here are some minimal examples:

package test1 {}
package test2 <<stereo>> {}

VS

package test1 {}
package test2 <<stereo>> {
}

Regards,
Th.

1 Answer

0 votes
answered Mar 8 by dickmaley (4,020 points)

I confirm there is weird behavior between the rendering of
package test2 <<stereo1>> {}

image

and
package test2 <<stereo1>> {
}

image

@startuml
<style>
arrow {
FontColor: black;
LineColor: red;
LineThickness: 3;
}
.stereo1 {
BackgroundColor: aqua;
FontColor: green;
FontSize: 14;
FontStyle: Bold;
LineColor: black;
LineThickness: 3;
RoundCorner: 0;
Shadowing: 0;
}
.stereo2 {
BackgroundColor: PaleGreen;
FontColor: Blue;
FontSize: 14;
FontStyle: Bold;
LineColor: Blue;
LineThickness: 3;
RoundCorner: 0;
Shadowing: 0;
}
.stereo3 {
BackgroundColor: pink;
FontColor: black;
FontSize: 14;
FontStyle: Bold;
LineColor: black;
LineThickness: 3;
RoundCorner: 0;
Shadowing: 0;
}
</style>
hide stereotype
hide package stereotype
package test1 <<stereo1>> {
}
package test2 <<stereo2>> {
}

@enduml

...