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

Diagram preview fails when newpage command is nested in a conditional that does not execute #597

Open
daveokeeffe opened this issue Sep 25, 2024 · 0 comments

Comments

@daveokeeffe
Copy link

This (great) extension does not take conditionals into account when posting the UML to a plantuml server. It appears to expect X number of pages to be returned, where X is the amount of times the newpage command appears in the UML.

It fails when posting to a local dockerised plantuml server, and to the plantuml.com server.

Minimal example:

@startuml newpage conditional test

' swap to Multiple mode to see the extension successfully render multiple pages
!$bPaging = "Single"
' !$bPaging = "Multiple"

participant Customer
!if $bPaging == "Single"
  rnote across : Single Page
!elseif $bPaging == "Multiple"
  rnote across : Page 1
  newpage
  rnote across : Page 2
!endif

@enduml

This issue was logged a few years ago where procedures were involved., but I figured I'd add this information as here.

Thanks for a great extension!

@daveokeeffe daveokeeffe changed the title Diagram preview fails when newpage command is nested in a conditional that does execute Diagram preview fails when newpage command is nested in a conditional that does not execute Sep 25, 2024
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