Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity Diagram: Code format issue when double parenthesis in if #70

Closed
jonathanhuet opened this issue Oct 11, 2017 · 0 comments
Closed

Comments

@jonathanhuet
Copy link

When inside the condition of the if clause there is a pair of parenthesis, formatter adds a carry return and breaks the ssyntaxis of the diagram.

Example:

This following plantUML code is manually correctly formatted

@startuml
title : Formatter double parenthesis issue
start
if (exists(error)) then (yes)
    :throw (Exception(null));
endif
stop
@enduml

But when autoformatting the result is the following

@startuml
title : Formatter double parenthesis issue
start
if (exists(error)
    ) then (yes)
    :throw (Exception(null));
endif
stop
@enduml

That causes the following issue in the diagram renderer:
image

Note: The double parenthesis inside the throw is formatted perfectly

@qjebbs qjebbs closed this as completed in 810389a Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant