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

Formatting will break down if there is a note with a location specified. #386

Closed
udaken opened this issue Mar 30, 2021 · 2 comments
Closed

Comments

@udaken
Copy link
Contributor

udaken commented Mar 30, 2021

When I formatted the following code, the indents were formatted incorrectly.

@startuml
group SomeGroup
    Alice->Bob : hello
    note left Alice
    this is a first note
    end note
    Bob->Alice : ok
end

Bob->Bob : I am thinking
note left
    a note
    can also be defined
    on several lines
end note
@enduml

after formatted:

@startuml
group SomeGroup
    Alice->Bob : hello
    note left Alice
    this is a first note
end note
Bob->Alice : ok
end

Bob->Bob : I am thinking
note left
a note
can also be defined
on several lines
end note
@enduml

VS Code: v1.54.3
PlantUML Extention: v2.14.4

@qjebbs
Copy link
Owner

qjebbs commented Apr 6, 2021

Formatting PlantUML code is Deprecated, for the same reason why I gave up on syntax highlighting: regexp won't work on such flexible language.

@qjebbs qjebbs closed this as completed Apr 6, 2021
@udaken
Copy link
Contributor Author

udaken commented Apr 6, 2021

Oh, that's very disappointing.

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

2 participants