Table within class

0 votes
asked Feb 12 in Bug by ellef (130 points)
How can I insert a multi-line table, e.g. a value table, inside a class?

The code below results in two tables (instead of two rows of the same table)

class A{
   Normal attribute
   | header left | header right |
   | row left | row right |
 }

According to http://plantuml.com/creole, creole should work in all diagram types.

1 Answer

0 votes
answered Feb 12 by Serge Wenger Work (10,640 points)

You must put all on the same line:

@startuml
class A{
   Normal attribute
   | header left | header right |\n| row left | row right |
 }
@enduml

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuKhEIImkLd2ivb9GKF3BByfDp558B2afoamgBKa5YTKePAGcfgGMAUIaffKWU4MPwHb0RanUZK9HVZb44io4oN0fr78vfEQb0Eq00000

...