plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.73k stars 881 forks source link

Activity Diagram (New Syntax), break in elseif do not connect to correct end #1698

Open shutaozhenzhen opened 2 months ago

shutaozhenzhen commented 2 months ago

Describe the bug

break in elseif in repeat while or break in nest if To Reproduce Steps to reproduce the behavior:

@startuml
start
repeat
    if (open?) then (no)
    break
    else if (enable?) then (no)
    break
    else (yes)
    endif
repeat while (repeat)
stop
@enduml
@startuml
start
repeat
    if (open?) then (no)
    break
    else (yes)
    if (enable?) then (no)
    break
    endif
    endif
repeat while (repeat)
stop
@enduml

Expected behavior connect to the end

Screenshots

Desktop (please complete the following information):

Additional context //www.plantuml.com/plantuml/png/XOv13W8n24Ntd89bUmhdAftu9zE8j2aOu-qbZ7jPFV9U0fjvM_vw2YNGmaHpufX-S1aJUgli9vIBZffYNsYF98WXEsZR1V_Aye5T0dhln-yOlyyk8Q-jalcOj4KHNtq1

The-Lum commented 2 months ago

Hi @shutaozhenzhen, Thanks for the report; That seems a duplicate of #1420.

The-Lum commented 2 months ago

Duplicate of #1420