r-uu
r-uu

Reputation: 637

plantuml: show field's types and names in colums inside a class

I have a class like this:

abstract class Task
{
  String    name();
  LocalDate start();
  LocalDate end();
}

It is rendered something like this:

enter image description here

For better readability (imagine more methods and fields): Is there a way to align the method names in columns like in the code snippet above?

Upvotes: 0

Views: 19

Answers (1)

r-uu
r-uu

Reputation: 637

I found a solution/workaroud myself - simply use tabs instead of spaces:

@startuml

class Task
{
  String   \t\t name()
  LocalDate  \t start()
  LocalDate  \t end()
}

@enduml

Now it is rendered like this:

enter image description here

Upvotes: 0

Related Questions