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: