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

Sequence Diagram: Code formatting work wrong for "participant" with "as" #73

Closed
TakeAsh opened this issue Oct 19, 2017 · 0 comments
Closed

Comments

@TakeAsh
Copy link

TakeAsh commented Oct 19, 2017

When "participant" has "as" keyword, Code formatting inserts the new-line and breaks the syntax of the diagram.
This problem doesn't occur for "actor".
VSCode PlantUML 2.3.1

Before Code formatting, Preview works good.

@startuml
participant Alice
participant "The **Famous** Bob" as Bob
participant "The **Famous** Carol" as Carol
actor "The **Famous** Dave" as Dave

Alice -> Bob : hello --there--
... Some ~~long delay~~ ...
Bob -> Alice : ok
note left
  This is **bold**
  This is //italics//
  This is ""monospaced""
  This is --stroked--
  This is __underlined__
  This is ~~waved~~
end note

Alice -> Bob : A //well formatted// message
note right of Alice 
 This is <back:cadetblue><size:18>displayed</size></back> 
 __left of__ Alice. 
end note
note left of Bob 
 <u:red>This</u> is <color #118888>displayed</color> 
 **<color purple>left of</color> <s:red>Alice</strike> Bob**. 
end note
note over Alice, Bob
 <w:#FF33FF>This is hosted</w> by <img sourceforge.jpg>
end note 
@enduml

creole

After Code formatting, Preview doesn't work.

@startuml
participant Alice
  participant
    "The **Famous** Bob" as Bob
    participant
      "The **Famous** Carol" as Carol
      actor "The **Famous** Dave" as Dave

      Alice -> Bob : hello --there--
      ... Some ~~long delay~~ ...
      Bob -> Alice : ok
      note left
        This is **bold**
        This is //italics//
        This is ""monospaced""
        This is --stroked--
        This is __underlined__
        This is ~~waved~~
      end note

      Alice -> Bob : A //well formatted// message
      note right of Alice
        This is <back:cadetblue><size:18>displayed</size></back>
        __left of__ Alice.
      end note
      note left of Bob
        <u:red>This</u> is <color #118888>displayed</color>
        **<color purple>left of</color> <s:red>Alice</strike> Bob**.
      end note
      note over Alice, Bob
      <w:#FF33FF>This is hosted</w> by <img sourceforge.jpg>
      end note
      @enduml

I got the error message in the diagram renderer:
error

@qjebbs qjebbs closed this as completed in 6ffdc97 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