plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How do I split functions over multiple lines?

rcdailey-studiodesigner opened this issue · comments

Some calls can get very long and I'd like to organize them over multiple lines. Take this line for example:

System(jobs, "Long Running Job System", "Processes requests for unrelated background tasks with some output", $type="Software System")

Through experimentation, I found that this works (at least, it renders in VS Code using the Plant UML extension):

System(jobs,\
    "Long Running Job System",\
    "Processes requests for unrelated background tasks with some output",\
    $type="Software System")

This is tolerable, but I dislike the \ I have to add at the end of each line. I was hoping that since comma is a delimiter for function arguments, that the parser would be smart enough to ignore whitespace.

Is there a simpler / different syntax I can use?

Hi @rcdailey-studiodesigner

I think there is no other syntax possible. And "C4-PlantUML" (it is only a library on top of PlantUML) cannot define a new one.
But you could make a PlantUML specific enhancement request in Forum or Github.

BR
Helmut

PS.: I like PlantUML and I'm happy that I can use PlantUML (for free) and I don't think that the current functionality is (only) "tolerable".