Include File only parsed once?

0 votes
asked Nov 8, 2016 in Wanted features by anonymous

I was expecting to be able to inlude a file multiple times in order to requse common steps in a larger sequence.  It looks like the include file is only included once.  Is this the indended behavior?  Is there a way to include common steps more than once?

File : bob.pu

@startuml
Bob->Alice : hello
Alice->Bob : what
!include bob_i_need_help.ipu
!include bob_i_need_help.ipu
@enduml
 
File : bob_i_need_help.ipu
 
@startuml
Alice->Bob : I need help
Bob->Alice : Ok, here is some help
@enduml
 
Only 1 include is displayed.  It looks like I am using version 8049 of plantuml.

 

1 Answer

0 votes
answered Nov 8, 2016 by plantuml (298,440 points)

This is not very well documented, but you can use !include_many instead of !include in that case.

Hope this helps!

commented Nov 8, 2016 by anonymous
Thank you for your response.
...