Allow linebreaks in Macro parameter

+1 vote
asked Feb 23, 2018 in Wanted features by rngtng (180 points)
Consider following working code:

```
!define MULTILINEMESSAGE(from,to,message) from -> to : message
 

MULTILINEMESSAGE(A,B, I can has Multiline support plz)
```

Unfortunately this fails (syntax error) when introducing multilines:

```
!define MULTILINEMESSAGE(from,to,message) from -> to : message

MULTILINEMESSAGE(A,B,Can I haz \
Multiline support\
plz)

```

is it a bug? Or am I doing sth wrong?

1 Answer

0 votes
answered Mar 16, 2018 by Anthony-Gaudino (5,720 points)

You can use !definelong !enddefinelong

Example:

@startuml
!definelong mymacro(a, b)
class a
class b
!enddefinelong

mymacro(foo, bar)
@enduml
commented Mar 17, 2018 by rngtng (180 points)
Thanks @hukameniz

But this unfortunately doesn‘t solve my problem.  !definelong allows linebreaks in macros. But i‘m Looking for linebreaks in macroParamters. So I can call a macro with a value strechting over multiple Lines...
...