Allow linebreaks in Macro parameter

0 votes
asked Feb 23 in Wanted features by rngtng (170 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 by Anthony-Gaudino (7,540 points)

You can use !definelong !enddefinelong

Example:

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

mymacro(foo, bar)
@enduml
commented Mar 17 by rngtng (170 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...
...