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
MIT License
6.41k stars 1.1k forks source link

Question: How do I split functions over multiple lines? #331

Closed ghost closed 10 months ago

ghost commented 11 months ago

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?

kirchsth commented 10 months ago

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".