package with long description and alias

0 votes
asked Nov 29, 2017 in Bug by anonymous

I have a package like :

@startuml
package Title [
line 1
line 2
]
@enduml

And I try to give it an alias :

@startuml
package Title as alias [
line 1
line 2
]
@enduml

But PlantUML  gives me a syntax error :

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIf8JCvEJ4zL2CaioKbLI2nMICp919BHN3cPUQaAXX3AY2kMoo4rBmMe0G00


Am I missing something ?

1 Answer

–1 vote
answered Dec 1, 2017 by sseletskyy (140 points)

You can do it only for the package with the content wrapped with curly braces

Here is an example

@startuml
package One [
line 1
line 2
]

package Two as T {
 package Three [
  line 1
  line 2
 ]
}

One -> T
T <-> Three
@enduml
commented Dec 1, 2017 by anonymous
I had figured this out, but i needed the bracket version
...